2021-02-21 14:45:42 +01:00
|
|
|
---
|
|
|
|
name: Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
|
2023-01-15 17:27:41 +01:00
|
|
|
concurrency:
|
2022-05-21 11:33:21 +02:00
|
|
|
group: lint-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-02-21 14:45:42 +01:00
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-03-04 14:49:51 +01:00
|
|
|
- uses: actions/checkout@v3
|
2021-02-21 14:45:42 +01:00
|
|
|
|
2023-02-28 23:24:09 +01:00
|
|
|
- name: Reformat with Prettier
|
2023-01-20 22:28:48 +01:00
|
|
|
uses: actionsx/prettier@e90ec5455552f0f640781bdd5f5d2415acb52f1a
|
2021-02-21 14:45:42 +01:00
|
|
|
with:
|
|
|
|
# prettier CLI arguments.
|
2023-02-28 23:24:09 +01:00
|
|
|
args: --write .
|
|
|
|
- name: Show diff
|
|
|
|
run: git --no-pager diff --exit-code --color=never
|
|
|
|
shell: bash
|