forked from IndustryEssentials/ymir
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.12 KB
/
hel-pr.yml
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
41
42
43
44
45
46
47
48
49
name: hel-unittest
on:
pull_request:
branches:
- master
- dev
- prerelease
jobs:
hel-ci:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Cache Go Environment
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Verify dependencies
working-directory: ymir/backend/src/ymir_hel
run: |
time go mod verify
time go install honnef.co/go/tools/cmd/[email protected]
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.48
working-directory: ymir/backend/src/ymir_hel
args: --timeout=3m0s
- name: Lint and test code
working-directory: ymir/backend/src/ymir_hel
run: |
git config --global user.name 'CI-TEST'
git config --global user.email 'ci-test@ymir-team'
bash run_tests.sh