phanpy/.github/workflows/prettier-pr.yml

23 lines
505 B
YAML
Raw Normal View History

2024-09-14 04:29:23 +02:00
name: Prettier on pull requests
on:
pull_request:
workflow_dispatch:
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
2024-09-14 07:16:26 +02:00
# Need node to install prettier plugin(s)
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
2024-09-14 04:29:23 +02:00
- uses: creyD/prettier_action@v4.3
with:
dry: true
2024-09-14 07:16:26 +02:00
# Don't write anything
2024-09-22 12:53:45 +02:00
prettier_options: '--check --config .prettierrc'
file_pattern: '.'