Skip to content

Commit bd4f763

Browse files
committed
add job tests
1 parent 34b6a2d commit bd4f763

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: deploy
22

33
on:
44
workflow_call:
5+
inputs:
6+
run-tests:
7+
required: false
8+
default: false
9+
type: boolean
510
secrets:
611
AWS_ACCESS_KEY_ID:
712
required: true
@@ -21,8 +26,21 @@ env:
2126
DATADOG_APP_KEY: ${{ secrets.DATADOG_APP_KEY }}
2227

2328
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+
2440
release:
2541
runs-on: ['aws', 'linux', 'self-hosted' ]
42+
needs: tests
43+
if: ${{ always() && (needs.tests.result == 'success' || needs.tests.result == 'skipped') }}
2644
steps:
2745
- name: Checkout
2846
uses: actions/checkout@v2

0 commit comments

Comments
 (0)