chore: bump github.com/spf13/cobra from 1.8.0 to 1.8.1 in /constraint #1452
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: test | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: "Unit test" | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 | |
with: | |
egress-policy: audit | |
- name: Set up Go | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version: "1.22" | |
check-latest: true | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
path: go/src/github.com/open-policy-agent/frameworks | |
- name: Unit test | |
run: | | |
export PATH=$PATH:${GOBIN} | |
make -C constraint native-test | |
working-directory: go/src/github.com/open-policy-agent/frameworks | |
env: | |
GOPATH: ${{ github.workspace }}/go | |
GOBIN: ${{ github.workspace }}/go/bin | |
- name: Codecov Upload | |
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 | |
with: | |
flags: unittests | |
file: go/src/github.com/open-policy-agent/frameworks/constraint/cover.out | |
fail_ci_if_error: false |