-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (43 loc) · 1.36 KB
/
integ-tests.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
name: integ-tests
on:
workflow_dispatch:
push:
concurrency:
group: csi-pr-integ-test
jobs:
integ-tests:
runs-on: ubuntu-latest
steps:
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: make go.mk
- uses: ./go.mk/.github/actions/setup
- name: Build Docker image
run: make docker
- name: Tag Docker Image
run: |
docker tag exoscale/csi-driver:latest exoscale/csi-driver-integ-test:csi-pr-integ-test
- name: Push Docker Image
run: |
docker push exoscale/csi-driver-integ-test:csi-pr-integ-test
- name: run integ tests
run: |
cd internal/integ/ && go test \
-v \
-timeout 20m \
--create-cluster \
--create-csi-secret \
--tear-down-csi \
--image exoscale/csi-driver-integ-test:csi-pr-integ-test \
--cluster-name csi-pr-integ-test \
--zone ch-gva-2
shell: bash
env:
EXOSCALE_API_KEY: ${{ secrets.EXOSCALE_API_KEY_IAMV3 }}
EXOSCALE_API_SECRET: ${{ secrets.EXOSCALE_API_SECRET_IAMV3 }}