-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (31 loc) · 1.1 KB
/
ci.yaml
File metadata and controls
35 lines (31 loc) · 1.1 KB
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
31
32
33
34
35
on:
- push
- pull_request
name: Continuous integration
jobs:
example-policy-tests:
name: Test suite of example policy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0
with:
dotnet-version: '8.0.x'
include-prerelease: true
- run: dotnet test example/MyFirstKubewardenPolicy.Tests
example-policy-e2e-tests:
name: Run e2e tests of the example policy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0
with:
dotnet-version: '8.0.x'
include-prerelease: true
-
name: Install dependencies
uses: kubewarden/github-actions/policy-gh-action-dependencies@a97c0700ad65b276f15fda9195937bb0db850dcf # v4.6.4
- name: Run e2e tests
run: |
cd example/MyFirstKubewardenPolicy
make e2e-tests