Skip to content

refactor: add formatter, linter, CI checks and update all dependencie… #4

refactor: add formatter, linter, CI checks and update all dependencie…

refactor: add formatter, linter, CI checks and update all dependencie… #4

Workflow file for this run

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 }}