-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (30 loc) · 982 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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/policy-gh-action-dependencies@v3.1.11
- uses: actions/checkout@v4
with:
# until https://github.com/actions/checkout/pull/579 is released
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: "1.21.1"
- name: Install wasm-opt
run: |
wget https://github.com/WebAssembly/binaryen/releases/download/version_116/binaryen-version_116-x86_64-linux.tar.gz
tar -xzf binaryen-version_116-x86_64-linux.tar.gz
sudo mv binaryen-version_116/bin/wasm-opt /usr/local/bin
- name: Build
run: |
make policy.wasm
- name: Annotate
run: |
make annotated-policy.wasm
- name: Run e2e tests
run: |
make e2e-tests