Skip to content

Commit

Permalink
Check formatting as a GH action (#2445)
Browse files Browse the repository at this point in the history
Co-authored-by: Phillip Carter <[email protected]>
  • Loading branch information
chalin and cartermp authored Mar 3, 2023
1 parent 20cc125 commit 5f07b50
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/check-formatting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Check formatting

on:
pull_request:

jobs:
check-formatting:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- run: npm install

- name: Check formatting
run: npm run check:formatting
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"make:public": "make public ls-public",
"postbuild:preview": "npm run _check:links",
"postbuild:production": "npm run _check:links",
"prebuild:preview": "run-s _prebuild check:formatting",
"prebuild:preview": "run-s _prebuild",
"prebuild:production": "run-s _prebuild check:formatting",
"prebuild": "npm run _prebuild",
"precheck:links": "npm run build",
Expand Down

0 comments on commit 5f07b50

Please sign in to comment.