Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/frontend-ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,51 @@
name: Frontend CI

permissions:
contents: read

on:
pull_request:
paths:
- "frontend/**"
- ".github/workflows/frontend-ci.yml"
push:
branches: [master, develop]
paths:
- "frontend/**"
- ".github/workflows/frontend-ci.yml"

jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: frontend/package-lock.json

- name: Install dependencies
run: npm ci

- name: Run tests with coverage
run: npm run test:coverage

- name: Upload coverage report
if: always()
uses: actions/upload-artifact@v4
with:
name: frontend-coverage
path: frontend/coverage/

build:
runs-on: ubuntu-latest
needs: test
defaults:
run:
working-directory: frontend
Expand All @@ -24,5 +62,8 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Type check
run: npx vue-tsc --noEmit

- name: Build
run: npm run build
Loading
Loading