Skip to content

Only building for docker #20

Only building for docker

Only building for docker #20

name: Lint and Format Check
on:
push:
branches:
- main
paths:
- 'src/**/*'
- 'package.json'
pull_request:
branches:
- main
paths:
- 'src/**/*'
- 'package.json'
jobs:
lint-and-format:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: |
npm install
npm run lint
npm run format
- name: Run linting and formatting checks
run: |
npm run lint
npm run format
- name: Verify linting and formatting
run: |
npx lint-staged