-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (41 loc) · 1.12 KB
/
pull-requests.yml
File metadata and controls
49 lines (41 loc) · 1.12 KB
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
name: Pull requests
on:
pull_request:
branches:
- main
- releases/*
jobs:
validate:
uses: ./.github/workflows/validate.yml
with:
branch: ${{ github.base_ref }}
lint:
uses: ./.github/workflows/lint.yml
with:
branch: ${{ github.base_ref }}
upload:
needs: [validate]
uses: ./.github/workflows/upload.yml
integration-tests:
needs: [upload]
uses: ./.github/workflows/integration-tests.yml
e2e-tests:
needs: [upload]
uses: ./.github/workflows/e2e-tests.yml
secrets:
AUTIFY_CLI_E2E_AUTIFY_MOBILE_ACCESS_TOKEN: ${{ secrets.AUTIFY_CLI_E2E_AUTIFY_MOBILE_ACCESS_TOKEN }}
github-actions-tests:
needs: [upload]
uses: ./.github/workflows/github-actions-tests.yml
approved:
needs: [integration-tests, e2e-tests, github-actions-tests]
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- run: |
if [[ "${{ needs.integration-tests.result }}" == "success" && "${{ needs.e2e-tests.result }}" == "success" ]]; then
echo "Approved!"
else
echo "Not approved!"
exit 1
fi