build: only deploy ready prs to stage #129
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub Actions CI (Branch) | |
# TODO: FIXME: can we run on all pushes except those associated with a pull request to main (staging.yml)? | |
on: | |
push: | |
branches-ignore: | |
- main | |
- 'stage/**' | |
# TODO: what version of node are we getting and why? rush.json? actions default? | |
# TODO: what jobs should be broken out into reusiable workflows? | |
# https://docs.github.com/en/actions/using-workflows/reusing-workflows#calling-a-reusable-workflow | |
jobs: | |
install: | |
uses: ./.github/workflows/install.yml | |
build: | |
needs: install | |
uses: ./.github/workflows/build.yml | |
lint: | |
needs: [install, build] | |
uses: ./.github/workflows/lint.yml | |
with: | |
ENVIRONMENT: ${{ vars.ENVIRONMENT }} | |
secrets: inherit | |
unit-test: | |
needs: [install, build] | |
uses: ./.github/workflows/unit-test.yml | |
with: | |
ENVIRONMENT: ${{ vars.ENVIRONMENT }} | |
secrets: inherit | |
e2e-test: | |
needs: [install, build] | |
uses: ./.github/workflows/e2e-test.yml | |
with: | |
ENVIRONMENT: ${{ vars.ENVIRONMENT }} | |
secrets: inherit |