Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.github/workflows: update Go to 1.19, drop 1.16 #47

Merged
merged 1 commit into from
Aug 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a
with:
go-version: '1.18'
go-version: '1.19'

- name: Check out code
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
build-and-test:
strategy:
matrix:
go-version: [ '1.16', '1.17', '1.18' ]
go-version: [1.17, 1.18, 1.19]
os: [ubuntu-18.04, ubuntu-20.04, ubuntu-22.04, macos-11, macos-12]
runs-on: ${{ matrix.os }}

Expand All @@ -26,17 +26,17 @@ jobs:
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b

- name: Check formatting
if: ${{ matrix.go-version == '1.18' && matrix.os == 'ubuntu-20.04' }}
if: ${{ matrix.go-version == '1.19' && matrix.os == 'ubuntu-22.04' }}
run: diff -u <(echo -n) <(gofmt -d .)

- name: Check Go modules
if: ${{ matrix.go-version == '1.18' && matrix.os == 'ubuntu-20.04' }}
if: ${{ matrix.go-version == '1.19' && matrix.os == 'ubuntu-22.04' }}
run: |
go mod tidy
git diff --exit-code

- name: Build (cross-compile)
if: matrix.os == 'ubuntu-20.04'
if: matrix.os == 'ubuntu-22.04'
run: |
GOOS=darwin go build ./...
GOOS=dragonfly go build ./...
Expand Down