Skip to content

Commit

Permalink
update github action
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Lehner <[email protected]>
  • Loading branch information
florianl committed Mar 25, 2022
1 parent 522e1b8 commit 697db84
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ jobs:
test:
strategy:
matrix:
go-version: [1.15.x, 1.16.x, 1.17.x]
go-version: [1.15.x, 1.16.x, 1.17.x, 1.18.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
Expand All @@ -23,21 +23,21 @@ jobs:
- name: Test with -race
run: go test -race -count=1 ./...
- name: Integration test
if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.17')
if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.18')
run: |
sudo modprobe nfnetlink_queue
sudo ip6tables -I OUTPUT -p ipv6-icmp -j NFQUEUE --queue-num 100
sudo iptables -I OUTPUT -p icmp -j NFQUEUE --queue-num 100
go test -v -tags integration -exec=sudo -count=1 ./...
- name: golint
if: matrix.platform == 'ubuntu-latest'
if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.18')
# https://github.com/actions/setup-go/issues/14
run: |
export PATH=$PATH:$(go env GOPATH)/bin
go get -u golang.org/x/lint/golint
golint -set_exit_status $(go list ./... | grep -v internal/unix)
- name: staticcheck.io
if: matrix.platform == 'ubuntu-latest'
if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.18')
# https://github.com/actions/setup-go/issues/14
run: |
export PATH=$PATH:$(go env GOPATH)/bin
Expand Down

0 comments on commit 697db84

Please sign in to comment.