Skip to content

build(deps-dev): bump the dev-dependencies group across 1 directory with 8 updates #24

build(deps-dev): bump the dev-dependencies group across 1 directory with 8 updates

build(deps-dev): bump the dev-dependencies group across 1 directory with 8 updates #24

Workflow file for this run

name: CI
on:
push:
branches: [master, main, develop]
pull_request:
branches: [master, main, develop]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
NODE_VERSION: '20'
jobs:
lint:
name: Lint & Format Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint --if-present
- name: Check formatting
run: npm run format:check --if-present
type-check:
name: TypeScript Type Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- run: npm ci
- name: Type check
run: npm run type-check --if-present
test:
name: Unit & Integration Tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['18', '20']
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- name: Run unit tests with coverage
run: npm run test:coverage
- name: Upload coverage report
if: matrix.node-version == '20'
uses: codecov/codecov-action@v6
with:
files: ./coverage/lcov.info
fail_ci_if_error: false
e2e:
name: E2E Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- run: npm ci
- run: npx playwright install --with-deps chromium
- name: Build app
run: npm run build
- name: Run E2E tests
run: npm run test:e2e
- uses: actions/upload-artifact@v7
if: failure()
with:
name: playwright-report
path: playwright-report/
retention-days: 14
build:
name: Build
runs-on: ubuntu-latest
needs: [lint, type-check, test]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- run: npm ci
- name: Build production bundle
run: npm run build
- name: Check bundle size
run: |
echo "Build artifacts:"
du -sh dist/
ls -lah dist/
- uses: actions/upload-artifact@v7
with:
name: dist
path: dist/
retention-days: 7