chore(deps): update docker.io/splunk/splunk docker digest to b3bce59 #460
This file contains hidden or 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:1.21.11-9 | |
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@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |