tasko/.github/workflows/prettier.yml

30 lines
576 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:
2024-12-28 22:36:50 +00:00
node-version: 'latest'
2024-06-05 00:41:40 +00:00
- name: Configure Corepack
run: corepack enable
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 .