-
Notifications
You must be signed in to change notification settings - Fork 13
69 lines (65 loc) · 1.94 KB
/
emailsender-central-compatibility.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
68
69
name: emailsender-central-compatibility
on:
push:
branches:
- main
paths:
- 'emailsender/**'
- 'scripts/**'
- '.github/workflows/emailsender-central-compatibility.yaml'
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- 'emailsender/**'
- 'scripts/**'
- '.github/workflows/emailsender-central-compatibility.yaml'
jobs:
e2e-test-on-kind:
timeout-minutes: 45
name: "Test on kind cluster"
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.head.repo.fork }} # do not run for PRs from forks
permissions:
id-token: write
contents: read
environment: development
steps:
- name: Cancel Previous Runs
uses: n1hility/cancel-previous-runs@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Cache go module
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Login to Quay.io
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_RHACS_ENG_RO_USERNAME }}
password: ${{ secrets.QUAY_RHACS_ENG_RO_PASSWORD }}
- name: Checkout this repository
uses: actions/checkout@v4
with:
path: acs-fleet-manager
fetch-depth: 0
- name: Checkout stackrox/stackrox repository
uses: actions/checkout@v4
with:
repository: stackrox/stackrox
path: stackrox
fetch-tags: true
fetch-depth: 0
- name: Create Kind cluster"
uses: helm/kind-action@v1
with:
cluster_name: kind
- name: Run Test
run: acs-fleet-manager/scripts/ci/central_compatibility/entrypoint.sh