-
Notifications
You must be signed in to change notification settings - Fork 7
57 lines (46 loc) · 1.61 KB
/
flex-migration-test.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
name: Migrate-to-Flex
on:
pull_request:
defaults:
run:
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
shell: bash --noprofile --norc -eo pipefail -x {0}
jobs:
Flex-to-CSI:
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: setup cluster resources
uses: ./.github/workflows/setup-cluster-resources
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: setup flex
run: tests/script/github_action_helper.sh deploy_rook_ceph_with_flex
- name: Test migration of all PVC
run: tests/script/github_action_helper.sh test_flex_migration_for_all_pvc
- name: setup tmate session for debugging when event is PR
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 300
Flex-Mirgate-single-PVC:
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: setup cluster resources
uses: ./.github/workflows/setup-cluster-resources
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: setup flex
run: tests/script/github_action_helper.sh deploy_rook_ceph_with_flex
- name: Test migration of all PVC
run: tests/script/github_action_helper.sh test_flex_migration_for_single_pvc
- name: setup tmate session for debugging when event is PR
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 300