add: prettier CI

This commit is contained in:
Afonso Jorge Ramos 2022-07-05 23:50:39 +01:00
parent 838a572a6a
commit 74fb34d1cf

22
.github/workflows/prettier.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Prettier CI
on:
pull_request:
push:
branches:
- main
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Prettify code
uses: creyD/prettier_action@v4.2
with:
prettier_options: --write **/*.{json,md} --use-tabs