chore(deps): update actions/checkout action to v4.1.1 #337
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Test (Golang) | |
on: # yamllint disable-line rule:truthy | |
pull_request: | |
types: [opened, synchronize] | |
paths: | |
- .github/workflows/test.golang.yml | |
- go.* | |
- cmd/** | |
- pkg/** | |
push: | |
branches: [main] | |
jobs: | |
go-test: | |
name: Golang test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
# renovate: datasource=golang-version | |
go-version: '1.20' | |
check-latest: true | |
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
- name: Run golang tests | |
run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./... | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 | |
with: | |
name: golang-coverage-report | |
path: coverage.out | |
retention-days: 1 | |
codecov: | |
name: Codecov | |
runs-on: ubuntu-latest | |
needs: [go-test] | |
steps: | |
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2 | |
with: | |
name: golang-coverage-report | |
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 |