Skip to content

Update actions/setup-go action to v5 #33

Update actions/setup-go action to v5

Update actions/setup-go action to v5 #33

Workflow file for this run

name: Test
on:
push:
tags-ignore: ["v[0-9]+.[0-9]+.[0-9]+.*", "trigger-push"]
pull_request:
jobs:
test:
strategy:
matrix:
go-version: [ '1.20', '1.17' ]
platform: [ ubuntu-22.04, macos-13, windows-2019 ]
runs-on: ${{ matrix.platform }}
if: always()
steps:
- name: Install Go
uses: actions/[email protected]
with:
go-version: ${{ matrix.go-version }}
- name: Checkout repository
uses: actions/[email protected]
- name: Test
shell: bash
run: |
go test -v -covermode=atomic -coverprofile "coverage.cov" ./...
go tool cover -func="coverage.cov"
go tool cover -html="coverage.cov" -o "coverage.html"