chains/.github/workflows/prettier.yml
Vladimir Pouzanov 93c61b12f2
Add a slightly better linter check (#2446)
* Remove the NPM cache from the validate_icons step

* Add a prettier formatting check

---------

Co-authored-by: ligi <ligi@ligi.de>
2023-03-18 18:37:17 +01:00

22 lines
489 B
YAML

name: Run prettier
on:
push:
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- uses: actions/cache@v2
name: Configure npm caching
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/prettier.yml') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Run prettier
run: |-
npx prettier --check '_data/*/*.json'