Bump GitHub actions to their latest versions #56
Workflow file for this run
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: Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [1.21.x, 1.22.x] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install go | |
uses: WillAbides/[email protected] | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Test | |
run: go test -count 1 -bench . -benchtime 1x ./... | |
- name: Test with -tags purego | |
run: go test -count 1 -bench . -benchtime 1x -tags purego ./... | |
test-qemu: | |
needs: test | |
strategy: | |
matrix: | |
go-version: [1.21.x, 1.22.x] | |
arch: [386, arm, arm64] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install go | |
uses: WillAbides/[email protected] | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Install QEMU | |
uses: docker/setup-qemu-action@3 | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Run test via qemu/binfmt | |
# TODO: Run the dynamic linking tests as well. That is a little more | |
# involved. | |
run: go test -v -count 1 -bench . -benchtime 1x | |
env: | |
GOARCH: ${{ matrix.arch }} |