generated from crossplane/provider-template
-
Notifications
You must be signed in to change notification settings - Fork 7
70 lines (67 loc) · 2.22 KB
/
ci-weekly.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
63
64
65
66
67
68
69
70
name: CI [Weekly]
on:
schedule:
# The job will run at 9am UTC
# every week
- cron: '0 09 * * WED'
workflow_dispatch: { }
env:
GOLANGCI_VERSION: 'v1.54.0'
DOCKER_BUILDX_VERSION: 'v0.4.2'
jobs:
e2e-tests:
runs-on: ubuntu-20.04
steps:
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
with:
version: ${{ env.DOCKER_BUILDX_VERSION }}
install: true
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Fetch History
run: git fetch --prune --unshallow
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- name: Find the Go Build Cache
id: go
run: echo "::set-output name=cache::$(make go.cachedir)"
- name: Cache the Go Build Cache
uses: actions/cache@v4
with:
path: ${{ steps.go.outputs.cache }}
key: ${{ runner.os }}-build-e2e-tests-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-build-e2e-tests-
- name: Cache Go Dependencies
uses: actions/cache@v4
with:
path: .work/pkg
key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-pkg-
- name: Vendor Dependencies
run: make vendor vendor.check
- name: Build Helm Chart
run: make -j2 build VERSION=latest
env:
BUILD_ARGS: "--load"
# Use only if the VERSION is not latest
# - name: Docker Images Tag
# run: make docker.tag VERSION=latest
- name: Docker Images List
run: make docker.list | grep "crossplane-provider-ionoscloud"
- name: Run E2E Tests
# Temporarily skip the ALB tests in scheduled workflows,
# since it takes a lot of time (> 30 minutes) to create an ALB.
run: make e2e VERSION=latest USE_HELM3=true TEST_DBAAS=true TEST_K8S=true TEST_ALB=false TEST_BACKUP=true
env:
IONOS_USERNAME: ${{ secrets.IONOS_USERNAME }}
IONOS_PASSWORD: ${{ secrets.IONOS_PASSWORD }}