-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (39 loc) · 941 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: 'CI'
on:
pull_request:
branches:
- master
types:
- opened
- synchronize
- edited
workflow_call:
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: 'Install Go'
if: success()
uses: actions/setup-go@v2
with:
go-version: 1.18.x
- name: 'Checkout code'
uses: actions/checkout@v2
with:
submodules: "true"
- name: 'Cache go modules'
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
#Core module
- name: 'Run linters core module'
uses: golangci/golangci-lint-action@v3
with:
working-directory: 'core'
version: v1.50
args: --timeout 5m
- name: 'Run unit tests core module'
run: go test -v ./core/...