Merge pull request #584 from NYPL/SFR-2403/add-rollback-step #2
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: Full CI/CD Pipeline | |
on: | |
push: | |
branches: [main] | |
jobs: | |
# Job to deploy to the QA environment on successful merge to `main` | |
deploy_to_qa: | |
uses: NYPL/sfr-bookfinder-front-end/.github/workflows/build-qa.yml@main | |
secrets: inherit | |
# Job to run e2e tests on the QA environment after deployment | |
run_e2e_tests: | |
needs: deploy_to_qa | |
uses: NYPL/sfr-bookfinder-front-end/.github/workflows/Playwright.yml@main | |
with: | |
base_url: "https://drb-qa.nypl.org/" | |
secrets: inherit | |
# Job to deploy to production after successful e2e tests on QA | |
deploy_to_production: | |
needs: run_e2e_tests | |
uses: NYPL/sfr-bookfinder-front-end/.github/workflows/build-production.yaml@main | |
secrets: inherit |