Skip to content

build: only deploy ready prs to stage #129

build: only deploy ready prs to stage

build: only deploy ready prs to stage #129

Workflow file for this run

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