-
Notifications
You must be signed in to change notification settings - Fork 6
75 lines (68 loc) · 2.19 KB
/
cicd-dev-acc.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
71
72
73
74
75
name: Dev Acceptance Tests for CI CD
on:
workflow_dispatch:
jobs:
test-provider:
uses: ./.github/workflows/reusable-dev-acc.yml
with:
test_case: TestProvider
test_description: Check for valid terraform provider
secrets: inherit
test-datasouces:
needs:
- test-provider
if: "always() && ${{ needs.test-provider.result == 'success' }}"
uses: ./.github/workflows/reusable-dev-acc.yml
with:
test_case: TestAccDataSource
test_description: All data source test
secrets: inherit
test-vmaas-instance:
uses: ./.github/workflows/reusable-dev-acc.yml
needs:
- test-datasouces
if: "always() && ${{ needs.test-provider.result == 'success' }}"
with:
test_case: TestVmaasInstance TestAccResourceInstance
test_description: Instance test
secrets: inherit
test-vmaas-lb:
uses: ./.github/workflows/reusable-dev-acc.yml
needs:
- test-vmaas-instance
if: "always() && ${{ needs.test-provider.result == 'success' }}"
with:
test_case: TestVmaasLB TestAccResourceLB TestVmaasLoadBalancerPlan TestAccResourceLoadBalancerCreate
test_description: Loadbalancer test
secrets: inherit
test-vmaas-network:
uses: ./.github/workflows/reusable-dev-acc.yml
needs:
- test-vmaas-lb
if: "always() && ${{ needs.test-provider.result == 'success' }}"
with:
test_case: TestVmaasNetworkPlan TestAccResourceNetworkCreate TestAccResourceRouter TestVmaasRouter TestAccResourceTier TestVmaasRouteBGPNeighborPlan
test_description: Network test
secrets: inherit
process-logs:
runs-on: ubuntu-20.04
needs:
- test-vmaas-network
if: "always()"
steps:
- name: Checkout workspace
uses: actions/checkout@v4
- name: Download logs
id: logs
uses: actions/download-artifact@v4
with:
path: tmp/artifacts
merge-multiple: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Print Result and Publish
run: |
LOG_RESULT=$(python .github/parse_logs.py '${{ steps.logs.outputs.download-path }}')
echo $LOG_RESULT