Restructure frontend into __test__
and src
, add dummy test, fix linting
#6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Frontend CI | |
on: | |
push: | |
branches: | |
- "**" | |
paths: | |
- "frontend/**" | |
pull_request: | |
branches: | |
- "**" | |
paths: | |
- "frontend/**" | |
jobs: | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Format Frontend | |
run: | | |
cd frontend | |
npm install prettier | |
npx prettier --check . | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Lint frontend | |
run: | | |
cd frontend | |
npm install | |
npm run lint |