npm run prettier-fix
This commit is contained in:
parent
4f6a4cebde
commit
66ad85aadc
1 changed files with 8 additions and 8 deletions
16
.github/workflows/e2e_tests.yml
vendored
16
.github/workflows/e2e_tests.yml
vendored
|
|
@ -2,26 +2,26 @@ name: Playwright Tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
|
|
||||||
# Cache Playwright browsers
|
# Cache Playwright browsers
|
||||||
- name: Cache Playwright browsers
|
- name: Cache Playwright browsers
|
||||||
id: cache-playwright
|
id: cache-playwright
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/ms-playwright # The default Playwright cache path
|
path: ~/.cache/ms-playwright # The default Playwright cache path
|
||||||
key: ${{ runner.os }}-playwright-${{ hashFiles('package-lock.json') }} # Cache key based on OS and package-lock.json
|
key: ${{ runner.os }}-playwright-${{ hashFiles('package-lock.json') }} # Cache key based on OS and package-lock.json
|
||||||
|
|
@ -29,14 +29,14 @@ jobs:
|
||||||
${{ runner.os }}-playwright-
|
${{ runner.os }}-playwright-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Install Playwright and browsers unless cached
|
- name: Install Playwright and browsers unless cached
|
||||||
run: npx playwright install --with-deps
|
run: npx playwright install --with-deps
|
||||||
if: steps.cache-playwright.outputs.cache-hit != 'true'
|
if: steps.cache-playwright.outputs.cache-hit != 'true'
|
||||||
|
|
||||||
- name: Start Server
|
- name: Start Server
|
||||||
run: npm run start
|
run: npm run start
|
||||||
|
|
||||||
- name: Wait for server to start
|
- name: Wait for server to start
|
||||||
run: npx wait-on http://localhost:6274
|
run: npx wait-on http://localhost:6274
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue