mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2025-12-31 14:49:36 -06:00
42 lines
890 B
YAML
42 lines
890 B
YAML
name: Format Check (Client & Server)
|
|
on:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
format-client:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
|
|
- name: Install client dependencies
|
|
working-directory: client
|
|
run: npm install
|
|
|
|
- name: Check client formatting
|
|
working-directory: client
|
|
run: npm run format-check
|
|
|
|
format-server:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
|
|
- name: Install server dependencies
|
|
working-directory: server
|
|
run: npm install
|
|
|
|
- name: Check server formatting
|
|
working-directory: server
|
|
run: npm run format-check
|