chore(deps): update pre-commit hook golangci/golangci-lint to v1.64.7 #654
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: Unit tests | |
"on": | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
jobs: | |
go-test: | |
runs-on: ubuntu-latest | |
container: | |
image: registry.access.redhat.com/ubi9/go-toolset:9.5-1739801907 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Cache jq | |
id: cache-jq | |
uses: actions/cache@v4 | |
with: | |
path: ~/packages | |
key: jq-1.7-${{ runner.os }} | |
if: success() | |
- if: ${{ steps.cache-jq.outputs.cache-hit != 'true' }} | |
name: Install jq | |
run: | | |
mkdir -p ~/packages && \ | |
curl -L \ | |
https://github.com/stedolan/jq/releases/download/jq-1.7/jq-linux64 \ | |
-o ~/packages/jq && \ | |
chmod +x ~/packages/jq | |
- name: Run GO tests | |
run: | | |
export PATH=~/packages:$PATH && \ | |
go test -short -v -coverprofile=coverage.out -covermode=atomic \ | |
$(go list ./... | grep -v \ | |
'/splunk\|/fetch-uj-records\|/uid_map\|/ws_map') | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v5 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |