-
Notifications
You must be signed in to change notification settings - Fork 55
62 lines (53 loc) · 1.35 KB
/
kind-integration.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
name: KinD DSPO/DSP Integration Tests
on:
workflow_dispatch:
pull_request:
paths:
- go.mod
- go.sum
- controllers/**
- api/**
- config/**
- tests/**
- .github/resources/**
- .github/actions/**
- '.github/workflows/kind-integration.yml'
- '.github/scripts/tests/tests.sh'
- Makefile
types:
- opened
- reopened
- closed
- synchronize
concurrency:
group: ${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: true
env:
GIT_WORKSPACE: ${{ github.workspace }}
jobs:
dspo-tests:
runs-on: ubuntu-20.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: '1.21.x'
id: go
- name: Setup and start KinD cluster
uses: ./.github/actions/kind
- name: Run test
id: test
working-directory: ${{ github.workspace }}/.github/scripts/tests
run: |
sh tests.sh --kind
continue-on-error: true
- name: Collect events and logs
if: steps.test.outcome != 'success'
working-directory: ${{ github.workspace }}/.github/scripts/tests
run: |
./collect_logs.sh --dspa-ns test-dspa --dspo-ns opendatahub
exit 1