Skip to content

Commit dd9d36e

Browse files
committed
Fix format style, update the golang for tests
1 parent 5c22014 commit dd9d36e

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

.github/workflows/tests.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Tests
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
7-
branches: [ master ]
7+
branches: [master]
88

99
jobs:
1010

@@ -14,34 +14,34 @@ jobs:
1414
strategy:
1515
matrix:
1616
go:
17-
- ^1.13
18-
- ^1.14
17+
- ^1.19
18+
- ^1.20
1919
steps:
2020

21-
- name: Set up Go 1.x
22-
uses: actions/setup-go@v2
23-
with:
24-
go-version: ${{ matrix.go }}
25-
26-
- name: Check out code into the Go module directory
27-
uses: actions/checkout@v2
28-
29-
- name: Install dependencies
30-
run: |
31-
sudo apt-get install -y libacl1-dev
32-
go get golang.org/x/lint/golint
33-
34-
- name: Test
35-
run: |
36-
make test
37-
golint ./...
38-
39-
- name: Build and run version
40-
run: |
41-
make VERSION=testing-version clean build
42-
./build/grafsy -v
43-
CGO_ENABLED=0 make GO_FLAGS='-tags noacl' VERSION=testing-version clean build
44-
./build/grafsy -v
21+
- name: Set up Go 1.x
22+
uses: actions/setup-go@v2
23+
with:
24+
go-version: ${{ matrix.go }}
25+
26+
- name: Check out code into the Go module directory
27+
uses: actions/checkout@v2
28+
29+
- name: Install dependencies
30+
run: |
31+
sudo apt-get install -y libacl1-dev
32+
GO111MODULE=off go get golang.org/x/lint/golint
33+
34+
- name: Test
35+
run: |
36+
make test
37+
golint ./...
38+
39+
- name: Build and run version
40+
run: |
41+
make VERSION=testing-version clean build
42+
./build/grafsy -v
43+
CGO_ENABLED=0 make GO_FLAGS='-tags noacl' VERSION=testing-version clean build
44+
./build/grafsy -v
4545
4646
build:
4747
name: Build packages

0 commit comments

Comments
 (0)