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

22 lines
456 B
YAML
Raw Normal View History

2024-09-14 05:29:23 +03: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 08:16:26 +03:00
# Need node to install prettier plugin(s)
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
2024-09-14 05:29:23 +03:00
- uses: creyD/prettier_action@v4.3
with:
dry: true
2024-09-14 08:16:26 +03:00
# Don't write anything
prettier_options: '--check'