fix(deps): Update golang.org/x/exp digest to d852ddb (#24) #71
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: "Unit tests" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
unitests: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: "go.mod" | |
cache: true | |
- run: go mod download | |
- run: go build ./... | |
- name: Run tests | |
if: matrix.os != 'ubuntu-latest' | |
run: go test -race ./... | |
- name: Run tests | |
if: matrix.os == 'ubuntu-latest' | |
run: go test -race -coverprofile=coverage.out ./... | |
- name: Generate coverage report | |
if: always() && matrix.os == 'ubuntu-latest' | |
run: go tool cover -html coverage.out -o coverage.html | |
- uses: actions/upload-artifact@v3 | |
if: always() && matrix.os == 'ubuntu-latest' | |
with: | |
name: Code coverage | |
path: coverage.html |