Skip to content

feat: vap update to reduce operations, v1beta1, and fail open #14

feat: vap update to reduce operations, v1beta1, and fail open

feat: vap update to reduce operations, v1beta1, and fail open #14

Workflow file for this run

name: test
on: [push, pull_request]
jobs:
lint:
name: "Lint"
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.54.2
working-directory: constraint
test:
name: "Unit test"
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Check out code into the Go module directory
uses: actions/checkout@v4
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@v3
with:
flags: unittests
file: go/src/github.com/open-policy-agent/frameworks/constraint/cover.out
fail_ci_if_error: false