Skip to content

github actions upgrade #6

github actions upgrade

github actions upgrade #6

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
go:
name: Go - test
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set-up Go
uses: actions/setup-go@v6
with:
go-version-file: "go.mod"
cache: true
- name: golangci-lint setup
uses: golangci/golangci-lint-action@v9
with:
args: --verbose
version-file: .tool-versions
install-mode: "binary"
- name: Test with coverage
run: |
go test -count=1 -covermode=atomic -coverpkg=./... -coverprofile=coverage.out ./...
go tool cover -func=coverage.out