Skip to content

ci: add workflow to check code with linter and formatter #1

ci: add workflow to check code with linter and formatter

ci: add workflow to check code with linter and formatter #1

Workflow file for this run

name: Linting and formatting
on: [ push, pull_request ]
jobs:
lint-format:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Linting
run: npm run lint
- name: Formatting
run: npm run prettify