README: add OSS-Fuzz badge, update Go reference badge (#50) #148
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
on: [ push, pull_request ] | |
jobs: | |
unit: | |
strategy: | |
matrix: | |
go: [ "1.22.x", "1.23.x" ] | |
runs-on: ubuntu-latest | |
name: Unit tests (Go ${{ matrix.go }}) | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- run: go version | |
- name: Run tests | |
run: go test -v -cover -race -shuffle=on . | |
- name: Run tests (32 bit) | |
env: | |
GOARCH: 386 | |
run: go test -v -cover -coverprofile=coverage.txt -shuffle=on . | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
files: coverage.txt | |
env_vars: GO=${{ matrix.go }} | |
token: ${{ secrets.CODECOV_TOKEN }} | |
integration: | |
strategy: | |
matrix: | |
go: [ "1.22.x", "1.23.x" ] | |
runs-on: ubuntu-latest | |
name: Integration tests (Go ${{ matrix.go }}) | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- run: go version | |
- name: Run interop tests | |
run: go test -v ./integrationtests/interop/ | |
- name: Run integration tests | |
run: | | |
for i in {1..25}; do | |
go test -v -race -shuffle=on ./integrationtests/self | |
done |