Skip to content

Commit

Permalink
Added CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joshniemela committed Aug 18, 2024
1 parent 1603619 commit 9762cd6
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/frontend-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Frontend CI

on:
push:
paths:
- "frontend/**"


jobs:
prettier:
name: Code quality check
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: ./frontend/package-lock.json

- name: Clean install
working-directory: ./frontend
run: npm ci

- name: Prettier & Eslint
working-directory: ./frontend
run: npm run lint

- name: Svelte check
working-directory: ./frontend
run: npm run check

0 comments on commit 9762cd6

Please sign in to comment.