chore(Dependabot-docker): bump splunk/splunk from sha256:3b725dfd03691f75d453515d96a5987ebf3cd5e0776e5621f6ed4a10b3c0d49c to sha256:6e7ef6ff9c2051d2281dce1dc6619cd5b4b5c1b40316f22e4c6627c51d0a1c83 in /splunk #686
Workflow file for this run
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: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 }} |