test snapshot ci #7
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: CI | |
on: ['push', 'pull_request'] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ubuntu-latest] | |
node: [lts/*] | |
experimental: [false] | |
name: π· CI @QwikDev/astro on Node-${{ matrix.node }} under ${{ matrix.os }} | |
timeout-minutes: 60 | |
steps: | |
- name: π Get latest code | |
uses: actions/checkout@v4 | |
- name: π³ Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: π¦ Install dependencies | |
run: corepack enable && pnpm install | |
- name: β Check code format and lint | |
run: pnpm check | |
- name: π§ͺ Run E2E tests | |
run: pnpm test | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |