-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (56 loc) · 1.74 KB
/
action-test-macos.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
58
59
60
61
62
63
name: Action Test Macos
on:
push:
paths:
- '.github/workflows/action-test-macos.yaml'
- 'action.yaml'
- 'runtime.py'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
orchestration:
runs-on: macos-latest
outputs:
tasks: ${{ steps.tasks.outputs.tasks }}
runId: ${{ steps.tasks.outputs.runId }}
runType: ${{ steps.tasks.outputs.runType }}
steps:
- uses: stack-spot/runtime-manager-action@main
id: tasks
with:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_KEY: ${{ secrets.CLIENT_KEY }}
CLIENT_REALM: ${{ secrets.CLIENT_REALM }}
WORKSPACE: Runtimes
ENVIRONMENT: production
VERSION_TAG: ${{ github.sha }}
TF_STATE_BUCKET_NAME: test
TF_STATE_REGION: test
IAC_BUCKET_NAME: test
IAC_REGION: test
VERBOSE: true
- name: Check Run Data
run: |
echo "RunId: ${{ steps.tasks.outputs.runId }}"
echo "RunType: ${{ steps.tasks.outputs.runType }}"
echo "Tasks: ${{ steps.tasks.outputs.tasks }}"
provision:
runs-on: macos-latest
needs: [orchestration]
strategy:
matrix:
task: ${{ fromJSON(needs.orchestration.outputs.tasks) }}
fail-fast: true
max-parallel: 1
steps:
- name: Worker IAC
if: contains( matrix.task.taskType , 'IAC')
run: echo ${{ matrix.task.runTaskId }}
- name: Worker DEPLOY
if: contains( matrix.task.taskType , 'DEPLOY')
run: echo ${{ matrix.task.runTaskId }}
- name: Worker DESTROY
if: contains( matrix.task.taskType , 'DESTROY')
run: echo ${{ matrix.task.runTaskId }}