mirror of
https://github.com/gotson/komga.git
synced 2026-05-05 23:37:43 +00:00
cache playwright in ci
This commit is contained in:
parent
a45f71b193
commit
262e00f8a2
2 changed files with 32 additions and 3 deletions
15
.github/workflows/tests.yml
vendored
15
.github/workflows/tests.yml
vendored
|
|
@ -101,35 +101,44 @@ jobs:
|
|||
name: Test next-ui
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'npm'
|
||||
cache-dependency-path: next-ui/package-lock.json
|
||||
|
||||
- name: npm install
|
||||
working-directory: next-ui
|
||||
run: npm ci
|
||||
- name: npx playwright install --with-deps
|
||||
working-directory: next-ui
|
||||
run: npx playwright install --with-deps
|
||||
|
||||
- name: Setup Playwright
|
||||
uses: ./.github/actions/setup-playwright
|
||||
|
||||
- name: test:unit
|
||||
working-directory: next-ui
|
||||
run: npm run test:unit
|
||||
|
||||
# retry because of https://github.com/storybookjs/storybook/issues/31599
|
||||
- name: test:storybook
|
||||
uses: nick-fields/retry@v3
|
||||
with:
|
||||
command: npm run --prefix next-ui test:storybook
|
||||
max_attempts: '3'
|
||||
timeout_minutes: '5'
|
||||
|
||||
- name: lint
|
||||
working-directory: next-ui
|
||||
run: npm run lint
|
||||
|
||||
- name: prettier
|
||||
working-directory: next-ui
|
||||
run: npm run prettier
|
||||
|
||||
- name: type-check
|
||||
working-directory: next-ui
|
||||
run: npm run type-check
|
||||
|
||||
- name: build
|
||||
working-directory: next-ui
|
||||
run: npm run build-only
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue