Skip to content

Configure eslint and prettier for consistent code style #2

Configure eslint and prettier for consistent code style

Configure eslint and prettier for consistent code style #2

Workflow file for this run

name: CI
on:
pull_request:
env:
node_version: 20.x
jobs:
style:
name: Lint and Format
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}
- name: Install dependencies
run: npm ci
- name: Check formatting
run: npm run format:check
- name: Lint code
run: npm run lint
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build