Update project tooling
This commit is contained in:
parent
f0fb4fc86b
commit
3c21291d72
14 changed files with 1469 additions and 198 deletions
|
|
@ -1,4 +1,4 @@
|
|||
name: Deploy to Pages
|
||||
name: Check & deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
@ -25,20 +25,38 @@ jobs:
|
|||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
run: |
|
||||
npm ci
|
||||
npx playwright install --with-deps chromium
|
||||
|
||||
- name: Lint
|
||||
run: npm run lint -- --check || true
|
||||
- name: Test
|
||||
run: |
|
||||
npm run lint:check
|
||||
npm run format:check
|
||||
npm run typecheck
|
||||
npm run typecheck:e2e
|
||||
npm test
|
||||
|
||||
- name: Typecheck
|
||||
run: npm run typecheck
|
||||
- name: Test E2E
|
||||
run: |
|
||||
npm run test:e2e
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
run: |
|
||||
npm run build
|
||||
|
||||
- name: Upload Playwright report
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: playwright-report
|
||||
path: |
|
||||
playwright-report/
|
||||
test-results/
|
||||
retention-days: 7
|
||||
|
||||
- name: Copy build to host pages mount
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||
run: |
|
||||
apt update && apt install -y rsync
|
||||
mkdir -p /pages
|
||||
rsync -a --delete dist/ /pages/fleeting-garden
|
||||
rsync -a --delete dist/ /pages/fleeting
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue