Skip to content

Commit

Permalink
ci: add test workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrizio Sestito <[email protected]>
  • Loading branch information
fabriziosestito committed Oct 10, 2023
1 parent a714a35 commit f33536f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on: [push, pull_request]
name: Continuous integration
jobs:
test:
name: run tests and linters
runs-on: ubuntu-latest
steps:
- name: Install dependencies
uses: kubewarden/github-actions/[email protected]
- name: remove old kwctl
run: |
rm -rf ~/.kwctl
- name: Install experiemental kwctl
uses: kubewarden/github-actions/[email protected]
with:
KWCTL_VERSION: v1.7.0-rc1
- uses: actions/checkout@v3
with:
# until https://github.com/actions/checkout/pull/579 is released
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version: "1.21.1"
- name: Install wasm-opt
run: sudo apt-get install -y binaryen
- name: Build & annotate
run: |
make annotated-policy.wasm
- name: Run e2e tests
run: |
make e2e-tests

0 comments on commit f33536f

Please sign in to comment.