From 697db84e1974f71913534da0c0d47141ff345100 Mon Sep 17 00:00:00 2001 From: Florian Lehner Date: Fri, 25 Mar 2022 09:15:19 +0100 Subject: [PATCH] update github action Signed-off-by: Florian Lehner --- .github/workflows/go.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 693d7f8..08db9cf 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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 @@ -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