Skip to content

Commit

Permalink
Format checker in gihtub pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Jul 16, 2024
1 parent 15411d1 commit 559080d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Format Check

on: [push]

jobs:
tests:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm run check-format
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"dev": "tsc --watch",
"lint": "eslint --ext .js,.ts . --fix",
"format": "prettier --write .",
"check-format": "prettier --check .",
"typedoc": "typedoc src/index.ts"
},
"keywords": [
Expand Down

0 comments on commit 559080d

Please sign in to comment.