Merge remote-tracking branch 'origin/develop' into PE-7067-release-name #1781
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: Build and Test | |
concurrency: | |
group: ${{ github.ref_name }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches-ignore: | |
- main | |
- develop | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
lint_test_build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- run: yarn --frozen-lockfile | |
- run: yarn lint:check | |
- run: yarn test | |
- run: yarn build | |
test-playwright: | |
runs-on: ubuntu-latest | |
needs: lint_test_build | |
if: github.ref_name == 'main' | |
steps: | |
- uses: actions/checkout@v3 | |
- run: yarn --frozen-lockfile | |
# Cache Playwright browsers | |
- name: Cache Playwright browsers | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/ms-playwright | |
key: playwright-browsers-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
playwright-browsers-${{ runner.os }}- | |
# Install Playwright browsers if not cached | |
- run: yarn playwright install | |
- run: yarn build | |
- run: yarn test:playwright |