File tree Expand file tree Collapse file tree 2 files changed +24
-7
lines changed Expand file tree Collapse file tree 2 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 1
1
on : [push, pull_request]
2
2
name : Test
3
3
jobs :
4
+ lint :
5
+ runs-on : ubuntu-latest
6
+ steps :
7
+ - name : Install Go
8
+ uses : WillAbides/setup-go-faster@main
9
+ with :
10
+ go-version : 1.18.x
11
+ - uses : actions/checkout@v2
12
+ with :
13
+ path : ' ./src/github.com/kevinburke/ssh_config'
14
+ # staticcheck needs this for GOPATH
15
+ - run : |
16
+ echo "GO111MODULE=off" >> $GITHUB_ENV
17
+ echo "GOPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV
18
+ echo "PATH=$GITHUB_WORKSPACE/bin:$PATH" >> $GITHUB_ENV
19
+ - name : Run tests
20
+ run : make lint
21
+ working-directory : ' ./src/github.com/kevinburke/ssh_config'
22
+
4
23
test :
5
24
strategy :
6
25
matrix :
7
26
go-version : [1.17.x, 1.18.x]
8
- platform : [ubuntu-latest]
9
- runs-on : ${{ matrix.platform }}
27
+ runs-on : ubuntu-latest
10
28
steps :
11
29
- name : Install Go
12
30
uses : WillAbides/setup-go-faster@main
@@ -15,11 +33,10 @@ jobs:
15
33
- uses : actions/checkout@v2
16
34
with :
17
35
path : ' ./src/github.com/kevinburke/ssh_config'
18
- # staticcheck needs this for GOPATH
19
36
- run : |
20
37
echo "GO111MODULE=off" >> $GITHUB_ENV
21
38
echo "GOPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV
22
39
echo "PATH=$GITHUB_WORKSPACE/bin:$PATH" >> $GITHUB_ENV
23
- - name : Run tests
24
- run : make lint race-test
40
+ - name : Run tests with race detector on
41
+ run : make race-test
25
42
working-directory : ' ./src/github.com/kevinburke/ssh_config'
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ lint: $(STATICCHECK)
9
9
go vet ./...
10
10
$(STATICCHECK )
11
11
12
- test : lint
12
+ test :
13
13
@# the timeout helps guard against infinite recursion
14
14
go test -timeout=250ms ./...
15
15
16
- race-test : lint
16
+ race-test :
17
17
go test -timeout=500ms -race ./...
18
18
19
19
$(BUMP_VERSION ) :
You can’t perform that action at this time.
0 commit comments