tasko/.github/workflows/prettier.yml

27 lines
509 B
YAML
Raw Normal View History

name: Code Format Check
on:
push:
2024-04-08 17:22:13 +00:00
branches: [main]
pull_request:
2024-04-08 17:22:13 +00:00
branches: [main]
jobs:
check-format:
runs-on: ubuntu-latest
steps:
2024-04-08 17:22:13 +00:00
- name: Check out code
uses: actions/checkout@v4
2024-04-08 17:22:13 +00:00
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '21'
2024-04-08 17:22:13 +00:00
- name: Install dependencies
run: yarn install --frozen-lockfile
2024-04-08 17:22:13 +00:00
- name: Check code format
run: yarn prettier --check --ignore-path .prettierignore .