chore(deps): bump actions/setup-go in /.github/workflows #106
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: CI | |
on: | |
push: | |
paths: | |
- "**/*.go" | |
- ".github/workflows/ci.yaml" | |
jobs: | |
ci: | |
name: CI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4.1.1 | |
- name: Setup Go | |
uses: actions/setup-go@v5.2.0 | |
with: | |
go-version-file: ./go.mod | |
cache-dependency-path: ./go.sum | |
- name: Download Go modules | |
shell: bash | |
if: ${{ steps.setup-go.outputs.cache-hit != 'true' }} | |
run: | | |
go mod download | |
go mod verify | |
- name: Test | |
run: make FLAGS="-coverprofile=coverage.out" test | |
- name: Build | |
run: make build | |
- uses: jandelgado/gcov2lcov-action@v1.0.9 | |
with: | |
infile: coverage.out | |
outfile: coverage.lcov | |
version: v1.0.6 | |
- name: Report coverage to CodeClimate | |
uses: paambaati/codeclimate-action@v5.0.0 | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
with: | |
coverageLocations: | | |
${{github.workspace}}/coverage.lcov:lcov | |
verifyDownload: true |