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 06e1fbf
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
modules/**
modules/**
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 06e1fbf

Please sign in to comment.