chore: fmt #44
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, reopened, synchronize, ready_for_review] | |
jobs: | |
Test: | |
name: Run test codes | |
if: | | |
github.event.pull_request.draft == false | |
&& !startsWith(github.head_ref, 'release') | |
&& !startsWith(github.head_ref, 'doc') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install and cache nodejs | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
cache: 'npm' | |
cache-dependency-path: '**/package-lock.json' | |
- name: Install packages | |
run: npm ci | |
- name: Format check | |
run: npm run fmt:check | |
- name: Lint check | |
run: npm run lint | |
- name: Test and Show coverage | |
run: npm test -- --bail --maxWorkers=100% --watchAll=false --coverage |