chore: run formatter #237
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: Static analysis - Check format and run linter | |
on: | |
push: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
# Exclude in-repo PRs from running this job | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Setup Node.js 20 | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 | |
with: | |
node-version: 20.x | |
cache: npm | |
- name: Install npm development dependencies | |
run: npm ci | |
- name: Check format | |
run: npm run format:ci | |
- name: Run linter | |
run: npm run lint:ci |