This repository has been archived by the owner on Jun 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
52 lines (49 loc) · 1.78 KB
/
crossplane-upgrade.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
name: core-crossplane-upgrade
on:
schedule:
- cron: '0 12 * * *'
pull_request: {}
workflow_dispatch: {}
env:
GO_VERSION: '1.19'
HELM_VERSION: 'v3.9.0'
KIND_VERSION: 'v0.16.0'
jobs:
crossplane-upgrade-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Crossplane Release 1.12
uses: actions/checkout@v2
with:
repository: crossplane/crossplane
ref: release-1.12
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- name: Setup Kind
uses: engineerd/[email protected]
with:
version: ${{ env.KIND_VERSION }}
- name: Install Helm
uses: azure/setup-helm@v3
with:
version: ${{ env.HELM_VERSION }}
- name: Create Namespace
run: kubectl create namespace crossplane-system
shell: bash
- name: Install Crossplane from Stable
run: helm repo add crossplane-stable https://charts.crossplane.io/stable && helm repo update && helm install crossplane --namespace crossplane-system crossplane-stable/crossplane --version 1.12.2 --wait
shell: bash
- name: Run E2E Tests for stable
run: go test -p 1 -timeout 10m -v --tags=e2e ./test/e2e/...
- name: Checkout Crossplane Master
uses: actions/checkout@v2
with:
repository: crossplane/crossplane
ref: master
- name: Update Crossplane to latest build from master
run: helm repo add crossplane-master https://charts.crossplane.io/master/ && helm repo update && helm upgrade crossplane --namespace crossplane-system crossplane-master/crossplane --devel --wait
shell: bash
- name: Run E2E Tests for master
run: go test -p 1 -timeout 10m -v --tags=e2e ./test/e2e/...