Skip to content

Commit

Permalink
[#146] Add github worflow for global fmt checks
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay-ap committed Jan 12, 2024
1 parent fd3d709 commit 57fb232
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: safe-modules
on: [push]

jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: npm
cache-dependency-path: package-lock.json
- run: npm ci
- run: npm run fmt:global-check
- run: npm run lint:global

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"modules/*"
],
"scripts": {
"fmt": "prettier --write .",
"fmt:check": "prettier --check ."
"fmt:global": "prettier --write .",
"fmt:global-check": "prettier --check ."
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 57fb232

Please sign in to comment.