Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add lint and format check #208

Merged
Changes from 2 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
40 changes: 37 additions & 3 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
pull_request:

jobs:
test:
install:
name: Checkout and Install
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -42,5 +43,38 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Run Vitest
run: cd ./library && pnpm test
lint_website:
name: Run linter in website
needs: install
runs-on: ubuntu-latest

steps:
- run: pnpm lint
working-directory: website

format_website:
name: Run formatter in website
needs: install
runs-on: ubuntu-latest

steps:
- run: pnpm format.check
working-directory: website

lint_library:
name: Run linter in library
needs: install
runs-on: ubuntu-latest

steps:
- run: pnpm lint
working-directory: library

test_library:
name: Run Vitest in library
needs: install
runs-on: ubuntu-latest

steps:
- run: pnpm test
working-directory: library