Skip to content

Commit

Permalink
update to Go 1.19 (#24)
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Lehner <[email protected]>
  • Loading branch information
florianl authored Aug 6, 2022
1 parent d1e8224 commit 4cba7fc
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
on: [push, pull_request]
on:
push:
branches: [ main ]
pull_request:
branches: [ '**' ]

name: Go
jobs:

test:
strategy:
matrix:
go-version: [1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x]
go-version: [1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x, 1.19.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -23,16 +27,17 @@ jobs:
- name: Test with -race
run: go test -race -count=1 ./...
- name: Integration test
if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.18')
if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.19')
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: staticcheck.io
if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.17')
if: matrix.platform == 'ubuntu-latest' && startsWith(matrix.go-version, '1.19')
uses: dominikh/[email protected]
with:
version: "2021.1.1"
version: "2022.1.3"
min-go-version: "1.17"
install-go: false
cache-key: ${{ matrix.go-version }}

0 comments on commit 4cba7fc

Please sign in to comment.