Skip to content

Commit

Permalink
Check formatting via GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Mar 3, 2023
1 parent 47d5fba commit dfb4bb9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/check-formatting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Check formatting

on:
pull_request:

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

- name: Install Dependencies
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 dfb4bb9

Please sign in to comment.