Bump golang.org/x/net from 0.26.0 to 0.30.0 #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
# Test the latest go version | |
# and upload the test coverage. | |
test_latest: | |
name: Go latest stable | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 'stable' | |
check-latest: true | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build | |
run: go build -v . | |
- name: Test | |
run: go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic | |
# Test the latest three golang version | |
# on different operating systems. | |
test_versions: | |
strategy: | |
matrix: | |
go: ['1.22'] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
name: Go ${{ matrix.go }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Test | |
run: go test ./... -v -race -cover |