-
Notifications
You must be signed in to change notification settings - Fork 383
36 lines (35 loc) · 967 Bytes
/
demos.yaml
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
name: Demos
on:
workflow_dispatch:
pull_request:
types: [labeled]
jobs:
build-and-run-demos:
if: ${{ github.event.label.name == 'check-demos' }}
name: Build and Run Demos
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: v1.17
- run: make build
- name: Install latest version of Kind
run: |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64
chmod +x ./kind
sudo cp kind /usr/local/bin
- name: Install dependencies before running demos
run: |
sudo apt-get install pv
- name: Test Demos
run: |
mkdir tests
cd tests
../contrib/demo/runDemos.sh -t
- name: Archive Demo test results
uses: actions/upload-artifact@v2
if: failure()
with:
name: demo-tests
path: tests/**/*.log