forked from kubernetes-sigs/security-profiles-operator
-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (61 loc) · 1.49 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: test
on:
push:
branches:
- master
pull_request:
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: github/codeql-action/init@v1
with:
languages: go
- uses: github/codeql-action/autobuild@v1
- uses: github/codeql-action/analyze@v1
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.16'
- name: Install libseccomp-dev
run: |
sudo apt update
sudo apt install -y libseccomp-dev
- run: make test-unit
- uses: codecov/codecov-action@v1
with:
files: build/coverage.out
flags: unittests
verbose: true
image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: make image
- run: podman save -o image.tar security-profiles-operator
- uses: actions/upload-artifact@v2
with:
name: image
path: image.tar
e2e:
needs: image
runs-on: macos-10.15
timeout-minutes: 80
env:
RUN: ./hack/ci/run.sh
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
name: image
path: .
- name: Boot Virtual Machine
run: make vagrant-up
- name: Show environment information
run: $RUN kubectl get nodes -o wide
- name: Run E2E tests
run: $RUN hack/ci/e2e.sh