Skip to content

Merge remote-tracking branch 'origin/develop' into PE-7067-release-name #1781

Merge remote-tracking branch 'origin/develop' into PE-7067-release-name

Merge remote-tracking branch 'origin/develop' into PE-7067-release-name #1781

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