-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (38 loc) · 1012 Bytes
/
staging.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
name: GitHub Actions CI (Staging Deploy)
on:
pull_request:
branches:
- main
push:
branches:
- 'stage/**'
jobs:
stage-install:
uses: ./.github/workflows/install.yml
stage-build:
needs: stage-install
uses: ./.github/workflows/build.yml
stage-lint:
needs: [stage-install, stage-build]
uses: ./.github/workflows/lint.yml
with:
ENVIRONMENT: ${{ vars.ENVIRONMENT }}
secrets: inherit
stage-unit-test:
needs: [stage-install, stage-build]
uses: ./.github/workflows/unit-test.yml
with:
ENVIRONMENT: ${{ vars.ENVIRONMENT }}
secrets: inherit
stage-e2e-test:
needs: [stage-install, stage-build]
uses: ./.github/workflows/e2e-test.yml
with:
ENVIRONMENT: ${{ vars.ENVIRONMENT }}
secrets: inherit
stage-deploy:
needs: [stage-install, stage-build, stage-unit-test, stage-e2e-test, stage-lint]
uses: ./.github/workflows/deploy.yml
with:
ENVIRONMENT: ${{ vars.ENVIRONMENT }}
secrets: inherit