Skip to content

Merge pull request #10 from kapitanluffy/fix/9 #24

Merge pull request #10 from kapitanluffy/fix/9

Merge pull request #10 from kapitanluffy/fix/9 #24

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_call:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
- name: install deps
run: npm ci
- name: lint
run: |
npm run format:check
npm run lint:affected
unit_tests:
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 19, 20, 21]
name: Test Node v${{ matrix.node }}
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: install deps
run: npm ci
- name: test
run: npm run test:all