Skip to content

Replace the WebPack build system with Vite #1400

Replace the WebPack build system with Vite

Replace the WebPack build system with Vite #1400

Workflow file for this run

name: Push
on: ["push", "pull_request"]
jobs:
frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: Setup
run: npm install
- name: Formatting
run: npx prettier --check .
- name: Linting
run: npx eslint src
- name: Build
run: npm run build
- name: Test
run: npm run test
- name: Upload Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: frontend/reports/vitest-junit.xml
- name: Coverage
run: npm run coverage
- name: Upload Coverage
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
files: frontend/reports/clover.xml
format: clover
base-path: frontend
lighthouseci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- run: |
cd frontend && npm install && npm install -g @lhci/[email protected]
npm run build
- run: cd frontend && lhci autorun --collect.psiStrategy=desktop --upload.target=temporary-public-storage
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LIGHTHOUSE_CI }}