-
Notifications
You must be signed in to change notification settings - Fork 4
67 lines (65 loc) · 1.7 KB
/
ci.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
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
65
66
67
name: Run CI checks
on:
pull_request:
types: [opened, edited, synchronize, reopened, labeled, unlabeled]
merge_group:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install just
uses: extractions/setup-just@v2
- uses: actions/checkout@v4
- name: Build
run: just compile
test:
runs-on: ubuntu-latest
steps:
- name: Install just
uses: extractions/setup-just@v2
- uses: actions/checkout@v4
- name: Test
run: just test-unit
test-e2e-cluster-class:
runs-on: ubuntu-latest
steps:
- name: Install just
uses: extractions/setup-just@v2
- name: Install kind
uses: helm/kind-action@v1
with:
install_only: true
- uses: actions/checkout@v4
- name: Test
run: just test-cluster-class-import
- name: Collect artifacts
if: always()
run: just collect-test-cluster-class-import
- name: Store run artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: artifacts-cluster-class-import
path: _out/gather
test-e2e-import:
runs-on: ubuntu-latest
steps:
- name: Install just
uses: extractions/setup-just@v2
- name: Install kind
uses: helm/kind-action@v1
with:
install_only: true
- uses: actions/checkout@v4
- name: Test
run: just test-import
- name: Collect artifacts
if: always()
run: just collect-test-import
- name: Store run artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: artifacts-import
path: _out/gather