mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-02-07 11:42:55 +00:00
27 lines
493 B
YAML
27 lines
493 B
YAML
|
name: Code Format Check
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: [ main ]
|
||
|
pull_request:
|
||
|
branches: [ main ]
|
||
|
|
||
|
jobs:
|
||
|
check-format:
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- name: Check out code
|
||
|
uses: actions/checkout@v4
|
||
|
|
||
|
- name: Set up Node.js
|
||
|
uses: actions/setup-node@v4
|
||
|
with:
|
||
|
node-version: '21'
|
||
|
|
||
|
- name: Install dependencies
|
||
|
run: yarn install --frozen-lockfile
|
||
|
|
||
|
- name: Check code format
|
||
|
run: yarn prettier --check --ignore-path .prettierignore .
|