chore(deps): bump github.com/prometheus/client_golang from 1.20.5 to 1.22.0 #1544
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
# Run unit tests. | |
# Start for pull requests and on push to default branch. | |
name: Unit tests | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
run_unit_tests: | |
name: Run unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.23 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.23" | |
- name: Check out shell-operator code | |
uses: actions/checkout@v4 | |
- name: Restore Go modules | |
id: go-modules-cache | |
uses: actions/[email protected] | |
with: | |
path: | | |
~/go/pkg/mod | |
key: ${{ runner.os }}-gomod-${{ hashFiles('go.mod', 'go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-gomod- | |
- name: Download Go modules | |
if: steps.go-modules-cache.outputs.cache-hit != 'true' | |
run: | | |
go mod download | |
echo -n "Go modules unpacked size is: " && du -sh $HOME/go/pkg/mod | |
- name: Run unit tests | |
run: | | |
export GOOS=linux | |
go test \ | |
--race \ | |
-tags test \ | |
./cmd/... ./pkg/... ./test/utils |