chore(deps): bump golangci/golangci-lint-action from 4.0.0 to 5.3.0 #278
Workflow file for this run
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: build | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "*.md" | |
- "LICENSE" | |
- "NOTICE" | |
pull_request: | |
paths-ignore: | |
- "*.md" | |
- "LICENSE" | |
- "NOTICE" | |
jobs: | |
verify-code: | |
name: Verify code | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Cached Go dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Verify Go code | |
uses: golangci/[email protected] | |
with: | |
args: --verbose | |
version: latest | |
skip-pkg-cache: true | |
skip-build-cache: true | |
- name: Verify YAML code | |
uses: ibiqlik/action-yamllint@v3 | |
unit-tests: | |
name: Tests | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.19.13 | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run go mod tidy | |
run: make tidy | |
- name: Run unit tests | |
run: make tests | |
- name: Upload code coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
file: ./coverage.txt |