-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (50 loc) · 1.45 KB
/
tests.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
41
42
43
44
45
46
47
48
49
50
51
52
name: tests
on:
push:
pull_request:
env:
GO_VERSION: 1.14
jobs:
test:
name: all tests
runs-on: ubuntu-latest
env:
GOPATH: /home/runner/work/loaderbot/loaderbot/go
steps:
- name: set up go ${{env.GO_VERSION}}
uses: actions/setup-go@v1
id: go
with:
go-version: ${{env.GO_VERSION}}
- name: Check out code into the Go module directory
uses: actions/checkout@master
with:
path: go/src/github.com/insolar/loaderbot
fetch-depth: 1
- name: Test
run: make test
working-directory: ${{env.GOPATH}}/src/github.com/insolar/loaderbot
golangci-lint:
name: golangci-lint
runs-on: ubuntu-latest
env:
GOPATH: /home/runner/work/loaderbot/loaderbot/go
steps:
- name: set up go ${{env.GO_VERSION}}
uses: actions/setup-go@v1
id: go
with:
go-version: ${{env.GO_VERSION}}
- name: Check out code into the Go module directory
uses: actions/checkout@master
with:
path: go/src/github.com/insolar/loaderbot
fetch-depth: 1
- name: Add bin to path
run: echo "::add-path::${{env.GOPATH}}/bin"
- name: Install golangci
run: make golangci
working-directory: ${{env.GOPATH}}/src/github.com/insolar/loaderbot
- name: Run golangci-lint
run: make lint
working-directory: ${{env.GOPATH}}/src/github.com/insolar/loaderbot