Skip to content

chore(deps): bump actions/setup-go from 5.0.1 to 5.2.0 #92

chore(deps): bump actions/setup-go from 5.0.1 to 5.2.0

chore(deps): bump actions/setup-go from 5.0.1 to 5.2.0 #92

Workflow file for this run

name: Go
on:
push:
paths-ignore:
- 'README.md'
concurrency:
group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: 'go.mod'
cache: true
id: go
- name: Build
run: make build
- name: Run linters
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
with:
version: latest
skip-go-installation: true
- name: Install tparse
run: go install github.com/mfridman/tparse@latest
- name: Test
env:
COVER_OPTS: "-coverprofile=coverage.txt -covermode=atomic"
GOFLAGS: "-v -count=1 -json"
run: go test $COVER_OPTS ./... | tparse -all -notests -format markdown >> $GITHUB_STEP_SUMMARY
- name: Verify git clean
shell: bash
run: |
if [[ -z "$(git status --porcelain)" ]]; then
echo "${{ github.repository }} up to date."
else
echo "${{ github.repository }} is dirty."
echo "::error:: $(git status)"
exit 1
fi