Skip to content

Commit

Permalink
add gatekeeper test (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
sozercan committed Oct 4, 2021
1 parent bdb068f commit 7a19e4e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/gatekeeper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: gatekeeper_test
on: [push, pull_request]

jobs:
lint:
name: "Gatekeeper Test"
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Set up Go 1.17
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
path: go/src/github.com/open-policy-agent/frameworks

- name: Check out Gatekeeper default branch
uses: actions/checkout@v2
with:
repository: open-policy-agent/gatekeeper
path: go/src/github.com/open-policy-agent/gatekeeper

- name: Update Frameworks dependency in Gatekeeper
run: |
go mod edit -replace github.com/open-policy-agent/frameworks/constraint=${GITHUB_WORKSPACE}/go/src/github.com/open-policy-agent/frameworks/constraint
make vendor
working-directory: go/src/github.com/open-policy-agent/gatekeeper

- name: Make test
run: make test
working-directory: go/src/github.com/open-policy-agent/gatekeeper

0 comments on commit 7a19e4e

Please sign in to comment.