Skip to content

feat: enhance app layout with icon and title, improve theme handling,… #7

feat: enhance app layout with icon and title, improve theme handling,…

feat: enhance app layout with icon and title, improve theme handling,… #7

Workflow file for this run

name: Build and Test (CI)
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: build-output
path: dist/
retention-days: 1
- name: Run Unit Tests with Coverage
run: npm run test:coverage
- name: Upload Coverage Reports
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage/
retention-days: 7
- name: Upload to Codecov
uses: codecov/codecov-action@v3
with:
directory: ./coverage/
fail_ci_if_error: false
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run E2E Tests
run: npm run e2e
- name: Upload Playwright Report
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: playwright-report/
retention-days: 7