Feature/update web base version #591
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
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Pull Request Prerequisite Checks | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Derive appropriate SHAs for base and head for `nx affected` commands | |
uses: nrwl/nx-set-shas@v3 | |
with: | |
main-branch-name: ${{ github.base_ref }} | |
- name: Setup Node.js | |
uses: ./.github/actions/node-step | |
with: | |
npm-auth-token: ${{ secrets.NPM_TOKEN }} | |
- name: Build app | |
run: npm run affected:build | |
- name: Check Formatting | |
run: npm run format:check | |
- name: Unit test | |
run: npm run affected:test | |
- name: Check Linting | |
run: npm run affected:lint | |
playwright: | |
name: "Playwright Tests" | |
runs-on: ubuntu-latest | |
container: | |
image: mcr.microsoft.com/playwright:v1.32.1-focal | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: ./.github/actions/node-step | |
with: | |
npm-auth-token: ${{ secrets.NPM_TOKEN }} | |
- name: Install browsers | |
run: npx playwright install --with-deps chromium firefox webkit | |
shell: bash | |
- name: Run Playwright tests | |
run: HOME=/root npm run e2e |