Skip to content

Set Up Go Version in Workflow Based on go.mod #5

Set Up Go Version in Workflow Based on go.mod

Set Up Go Version in Workflow Based on go.mod #5

Workflow file for this run

name: Test
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
jobs:
test-packages:
name: Test Packages
runs-on: ubuntu-latest
steps:
- name: Check Out
uses: actions/checkout@v4.1.7
- name: Set Up Go
uses: actions/setup-go@v5.0.1
with:
go-version-file: go.mod
- name: Run Tests
run: go test -v ./... -coverprofile=.cover.out -covermode=atomic -coverpkg=./...
- name: Check Coverage
uses: vladopajic/go-test-coverage@v2.10.1
with:
profile: .cover.out
threshold-file: 100
threshold-package: 100
threshold-total: 100