Skip to content

Commit

Permalink
e2e workflow: correct Yarn version
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgnlez committed Sep 27, 2023
1 parent bc48bb3 commit f86ba96
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 29 deletions.
49 changes: 49 additions & 0 deletions client/.github/workflows/e2e-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: e2e client
on:
push:
paths:
- 'client/**'
- '.github/workflows/e2e-client.yml'
- '!client/README.md'

jobs:
e2e_client:
timeout-minutes: 15
runs-on: ubuntu-22.04
strategy:
fail-fast: false
defaults:
run:
working-directory: client
steps:
- name: checkout pull
uses: actions/checkout@v3

- name: Node setup
uses: actions/setup-node@v3
with:
node-version-file: 'client/.nvmrc'
cache: yarn
cache-dependency-path: 'client/yarn.lock'

- name: Changes Yarn version
run: corepack enable

- name: Install dependencies
run: yarn install --immutable

- name: Install Playwright Browsers
run: yarn playwright install --with-deps

- name: Run Playwright tests
run: yarn playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
env:
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 changes: 0 additions & 29 deletions client/.github/workflows/playwright.yml

This file was deleted.

0 comments on commit f86ba96

Please sign in to comment.