Skip to content

feat: implements external data response cache #998

feat: implements external data response cache

feat: implements external data response cache #998

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@v3
- name: Set up Go 1.19
uses: actions/setup-go@v4
with:
go-version: 1.19
- 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.50.0
working-directory: constraint
test:
name: "Unit test"
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Set up Go 1.19
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Check out code into the Go module directory
uses: actions/checkout@v3
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