Upgrade to testify v1.10.0 #82
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 and Lint | |
on: | |
push: | |
branches-ignore: [wip/**] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [[π§, Ubuntu], [π, macOS], [πͺ, Windows]] | |
go: ["1.23", "1.22"] | |
name: ${{ matrix.os[0] }} Test Go ${{ matrix.go }} on ${{ matrix.os[1] }} | |
runs-on: ${{ matrix.os[1] }}-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
with: { submodules: true } | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: { go-version: "${{ matrix.go }}", check-latest: true } | |
- name: Run Tests | |
run: make test | |
- name: Setup TinyGo | |
uses: acifani/setup-tinygo@v2 | |
with: { tinygo-version: 0.34.0 } | |
- name: Test WASM | |
run: make wasm | |
lint: | |
name: π Lint and Cover | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
with: { submodules: true } | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: { go-version-file: go.mod, check-latest: true } | |
- name: Install Dependencies | |
run: make debian-lint-depends | |
- name: Run pre-commit | |
uses: pre-commit/[email protected] | |
- name: Run Test Coverage | |
run: go test -race -coverprofile coverage.txt -covermode atomic ./... | |
- name: Upload Coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: cover.out |