-
Notifications
You must be signed in to change notification settings - Fork 7
66 lines (59 loc) · 1.5 KB
/
main.yaml
File metadata and controls
66 lines (59 loc) · 1.5 KB
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
name: Build main
on:
push:
branches:
- main
paths-ignore:
- "**/*.md"
- "**/*.txt"
permissions:
contents: write
packages: write
security-events: write
jobs:
build:
name: Build
uses: ./.github/workflows/_reusable-build-changed.yaml
run:
uses: ./.github/workflows/build-and-release.yaml
with:
push-container-image: true
coverage:
name: Coverage
permissions:
contents: read
uses: ./.github/workflows/_reusable-test-coverage.yaml
with:
COVERAGE_THRESHOLD: 70
e2e-build:
name: E2E build
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Build operator image
run: make container
- name: Save operator image
run: docker save $(make -s print-img) -o /tmp/operator-image.tar
- name: Upload operator image
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: operator-image
path: /tmp/operator-image.tar
retention-days: 1
e2e:
name: "E2E (${{ matrix.test }})"
needs: e2e-build
strategy:
fail-fast: false
matrix:
test: [minimal, inline, templated, deletion]
permissions:
contents: read
uses: ./.github/workflows/_reusable-e2e.yaml
with:
test-spec: ${{ matrix.test }}
mode: shared
operator-image-artifact: operator-image