There was an error while loading. Please reload this page.
1 parent 34b6a2d commit bd4f763Copy full SHA for bd4f763
1 file changed
.github/workflows/deploy.yaml
@@ -2,6 +2,11 @@ name: deploy
2
3
on:
4
workflow_call:
5
+ inputs:
6
+ run-tests:
7
+ required: false
8
+ default: false
9
+ type: boolean
10
secrets:
11
AWS_ACCESS_KEY_ID:
12
required: true
@@ -21,8 +26,21 @@ env:
21
26
DATADOG_APP_KEY: ${{ secrets.DATADOG_APP_KEY }}
22
27
23
28
jobs:
29
+ tests:
30
+ runs-on: ubuntu-latest
31
+ if: ${{ inputs.run-tests == true }}
32
+ steps:
33
+ - name: Checkout
34
+ uses: actions/checkout@v2
35
+ - name: Install cdflow2
36
+ uses: mergermarket/shared-actions/install-cdflow2@main
37
+ - name: Run tests
38
+ run: ./test.sh
39
+
24
40
release:
25
41
runs-on: ['aws', 'linux', 'self-hosted' ]
42
+ needs: tests
43
+ if: ${{ always() && (needs.tests.result == 'success' || needs.tests.result == 'skipped') }}
44
steps:
45
- name: Checkout
46
uses: actions/checkout@v2
0 commit comments