Skip to content

Format

Format #10

Workflow file for this run

name: Format
on: [pull_request]
# cancels in-progress jobs on this pull request
# avoids wasted work when a new commit is pushed
concurrency:
group: format-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions: read-all
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Run formatter
run: npm run lint