Skip to content

chore(main): Release v0.3.2 #59

chore(main): Release v0.3.2

chore(main): Release v0.3.2 #59

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@v3
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