Skip to content

fix: pipeline

fix: pipeline #141

Workflow file for this run

name: Lint
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
check:
name: "Check code formatting"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: "22.7.x"
cache: "npm"
cache-dependency-path: frontend/package-lock.json
- name: Run npm run lint to check formatting errors
run: npm ci && npm run lint
working-directory: frontend
- name: Download ktlint
run: |
curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.3.1/ktlint && chmod a+x ktlint && sudo mv ktlint /usr/local/bin/
- name: Run ktlint to check formatting errors
run: ktlint
working-directory: server