You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.2 KiB
43 lines
1.2 KiB
name: Verify template
|
|
on:
|
|
push:
|
|
pull_request:
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
verify:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [windows-latest, macos-latest, ubuntu-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
- uses: pnpm/action-setup@v4
|
|
- run: pnpm install --frozen-lockfile
|
|
- run: pnpm audit --prod
|
|
- run: pnpm format:check
|
|
- if: runner.os != 'Linux'
|
|
run: pnpm check
|
|
- if: runner.os == 'Linux'
|
|
run: xvfb-run --auto-servernum pnpm check
|
|
- if: runner.os != 'Linux'
|
|
run: pnpm test:e2e
|
|
- if: runner.os == 'Linux'
|
|
run: xvfb-run --auto-servernum pnpm test:e2e
|
|
- run: pnpm package
|
|
- if: runner.os != 'Linux'
|
|
run: pnpm test:packaged
|
|
- if: runner.os == 'Linux'
|
|
run: xvfb-run --auto-servernum pnpm test:packaged
|
|
- uses: actions/upload-artifact@v4
|
|
if: failure()
|
|
with:
|
|
name: diagnostics-${{ matrix.os }}
|
|
path: |
|
|
test-results
|
|
playwright-report
|
|
if-no-files-found: ignore
|
|
|