Skip to content

Merge pull request #25 from mniedermaier/dependabot/npm_and_yarn/back… #90

Merge pull request #25 from mniedermaier/dependabot/npm_and_yarn/back…

Merge pull request #25 from mniedermaier/dependabot/npm_and_yarn/back… #90

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
lint-and-typecheck:
name: Lint & Type Check
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm audit --audit-level=high
- run: npx tsc -b
test:
name: Unit Tests
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run test
e2e:
name: E2E Tests
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run build
- run: npx playwright install chromium
- run: npm run test:e2e
build:
name: Build
runs-on: ubuntu-latest
needs: [lint-and-typecheck, test]
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run build
- name: Report bundle size
run: |
echo "## Bundle Size" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
du -sh dist/assets/*.js | sort -rh | head -10 >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
echo "Total: $(du -sh dist | cut -f1)" >> $GITHUB_STEP_SUMMARY