Skip to content

fix(deps): Update golang.org/x/exp digest to d852ddb (#24) #71

fix(deps): Update golang.org/x/exp digest to d852ddb (#24)

fix(deps): Update golang.org/x/exp digest to d852ddb (#24) #71

Workflow file for this run

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