Convert project to Node.js v20 and many more updates ✨ #42
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: Format Check, Lint, Type Check, and Test | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
env: | |
HUSKY: 0 | |
jobs: | |
format-check-lint-type-check-test: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Node.js 20 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
- name: Install dependencies | |
run: npm install | |
- name: Format Check | |
run: npm format --check | |
- name: Lint | |
run: npm lint | |
- name: Type Check | |
run: npm type-check | |
- name: Test | |
run: npm test -- --disable-coverage --allow-empty-coverage # Disable coverage reporting for CI |