mirror-chatterino2/.github/workflows/lint.yml

29 lines
524 B
YAML
Raw Normal View History

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