Merge branch 'JSUI-3542-move-playwright-tests' into JSUI-3538-add-e2e… #6
Workflow file for this run
This file contains hidden or 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: 'End-to-end certifier' | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| environment: | |
| description: The environment in which to run the job | |
| default: dev | |
| region: | |
| description: The region in which to run the job | |
| default: us-east-1 | |
| package: | |
| description: The package name | |
| job: | |
| description: The name of the job (as defined in the deployment config) | |
| # TEMPORARY: Remove this trigger before merging | |
| push: | |
| branches: | |
| - JSUI-3538-add-e2e-certifier | |
| jobs: | |
| test-job: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Deploy JSUI beta version on Netlify | |
| run: curl --request POST https://api.netlify.com/build_hooks/${{ secrets.NETLIFY_BUILD_HOOK_ID }} | |
| - name: Install test dependencies | |
| run: | | |
| cd playwright | |
| npm install | |
| npx playwright install | |
| - name: Run tests | |
| run: | | |
| cd playwright | |
| npx playwright test |