Skip to content

Commit

Permalink
Merge pull request #24 from nikpivkin/go-test
Browse files Browse the repository at this point in the history
ci: add workflow for Go testing
  • Loading branch information
simar7 authored Oct 16, 2023
2 parents ab0d6a3 + 59057cf commit c1cf167
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test-go.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Test Go
on:
pull_request:
merge_group:
jobs:
build:
name: Test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: go.mod

- name: Run tests
run: make test
shell: bash
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
DYNAMIC_REGO_FOLDER=./rules/kubernetes/policies/dynamic

.PHONY: test
test:
go test -v ./...

.PHONY: schema
schema:
go run ./cmd/schema generate
Expand Down

0 comments on commit c1cf167

Please sign in to comment.