mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
GitHub Actions workflow for Prettier, refs #1166
This commit is contained in:
parent
5193d0b3e4
commit
9cbc099492
1 changed files with 22 additions and 0 deletions
22
.github/workflows/prettier.yml
vendored
Normal file
22
.github/workflows/prettier.yml
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
name: Check JavaScript for conformance with Prettier
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
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 'datasette/static/*[!.min].js'
|
||||
Loading…
Add table
Add a link
Reference in a new issue