refactor: add formatter, linter, CI checks and update all dependencie… #4
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 | |
concurrency: | |
group: "${{ github.workflow }} - ${{ github.head_ref || github.ref }}" | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- "**" | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
script: [build, format, lint] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
cache: "npm" | |
- name: Install | |
run: npm install | |
- name: Run ${{ matrix.script }} | |
run: npm run ${{ matrix.script }} |