chore: update deps #144
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
name: e2e # NB: The name is used in workflow_run | |
on: | |
push: | |
branches: [main, beta, chore/*, fix/*, feat/*] | |
pull_request_target: | |
types: [opened] | |
branches: [main, beta] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
e2e: | |
name: e2e tests | |
strategy: | |
matrix: | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: 'package.json' | |
- name: Use yarn cache | |
uses: actions/cache@v3 | |
id: yarn-cache | |
with: | |
path: ./.yarn/cache | |
key: ${{ secrets.CACHE_VERSION }}-${{ runner.os }}-deps-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: ${{ secrets.CACHE_VERSION }}-${{ runner.os }}-deps- | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Use Playwright cache | |
uses: actions/cache@v3 | |
id: playwright-cache | |
with: | |
path: | | |
~/Library/Caches/ms-playwright | |
~/.cache/ms-playwright | |
%USERPROFILE%\AppData\Local\ms-playwright | |
key: ${{ secrets.CACHE_VERSION }}-${{ runner.os }}-playwright-${{ hashFiles('**/yarn.lock') }} | |
- run: yarn workspace e2e playwright install --with-deps firefox | |
if: steps.playwright-cache.outputs.cache-hit != 'true' | |
- run: yarn workspace e2e playwright install-deps firefox | |
if: steps.playwright-cache.outputs.cache-hit == 'true' | |
- name: Gatsby cache | |
uses: actions/cache@v3 | |
id: e2e-gatsby-cache | |
with: | |
path: | | |
./examples/ui-theme-example/.cache | |
./examples/ui-theme-example/public | |
key: gatsby-${{ runner.os }} | |
- name: Run e2e tests | |
run: yarn test | |
- name: Store e2e artifacts | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: e2e-artifact | |
path: ./packages/e2e | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |