Skip to content

Commit

Permalink
ci: run Go tests
Browse files Browse the repository at this point in the history
  • Loading branch information
frncmx committed Dec 3, 2024
1 parent d8beba6 commit e6afb41
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
# KLUDGE: plan/check-sanitized-value.rego needs to be ignored because it uses the custom sanitized() function
find . -name \*.rego ! -regex '.*_test\.rego$' ! -path './examples/plan/check-sanitized-value.rego' -print0 | xargs -0 -n1 opa check --strict
unit-tests:
name: Unit Tests
opa-test:
name: OPA Tests
runs-on: ubuntu-latest

steps:
Expand All @@ -56,3 +56,15 @@ jobs:
for test in $tests; do
opa test -v $test ${test/_test.rego/.rego}
done
go-test:
name: Go Tests
runs-on: ubuntu-latest
container: golang:1.23.3

steps:
- name: Check out
uses: actions/checkout@v4

- name: Run unit tests
run: go test -v ./...

0 comments on commit e6afb41

Please sign in to comment.