Skip to content

format github/workflows/format-and-lint.yml #2

format github/workflows/format-and-lint.yml

format github/workflows/format-and-lint.yml #2

Workflow file for this run

name: Format and Lint
on:
push:
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- name: Check out branch (pull request)
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install packages
run: npm ci
- name: Check Formatting with Prettier
run: npx prettier --check .
- name: Lint with ESLint
run: npx eslint .