mirror-chatterino2/.github/workflows/lint.yml
Mm2PL f7ac526c35
CI: Make prettier print the diff on error (#4479)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
2023-03-26 13:42:04 +02:00

28 lines
532 B
YAML

---
name: Lint
on:
push:
branches:
- master
pull_request:
concurrency:
group: lint-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check formatting with Prettier
uses: actionsx/prettier@e90ec5455552f0f640781bdd5f5d2415acb52f1a
with:
# prettier CLI arguments.
args: --write .
- name: Show diff
run: git --no-pager diff --exit-code --color=never
shell: bash