forked from containers/nri-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.4 KB
/
e2e-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
# Run nri resource policy plugin e2e tests
name: NRI Resource Policy CI
# Controls when the workflow will run
on:
# pull_request:
# branches: [ "main" ]
schedule:
- cron: '0 4 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
e2e-tests:
name: "e2e tests"
runs-on: >-
${{ (
github.event_name == 'push' ||
github.event_name == 'schedule' ||
github.event.pull_request.author_association == 'OWNER' ||
github.event.pull_request.author_association == 'MEMBER'
) && 'self-hosted' }}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Update vendoring data
run: go mod vendor
- name: Build binaries
run: make
- name: Build images
run: make images
- name: Run all resource policy e2e tests
run: test/e2e/run_ci.sh policies.test-suite/
- name: Save log files if tests fail
uses: actions/upload-artifact@v3
if: failure()
with:
name: saved-logs
path: |
${{ github.workspace }}/e2e-test-results/policies.test-suite/topology-aware/
${{ github.workspace }}/e2e-test-results/policies.test-suite/balloons/
${{ github.workspace }}/e2e-test-results/runtime.log
if-no-files-found: ignore