Skip to content

Commit

Permalink
chore: run linting on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kabaros committed Dec 3, 2024
1 parent fa94c07 commit f9c7287
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/dhis2-verify-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ on:
types: ['opened', 'edited', 'reopened', 'synchronize']

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- run: yarn install --frozen-lockfile
- id: lint
run: yarn lint
lint-pr-title:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"test:server": "yarn workspace server test",
"test:client": "yarn workspace client test",
"clone": "yarn workspace tools clone",
"lint": "d2-style check",
"lint:staged": "d2-style check --staged",
"format": "yarn format:js && yarn format:text",
"format:staged": "yarn format:js --staged && yarn format:text --staged",
"format:js": "d2-style apply js",
Expand Down

0 comments on commit f9c7287

Please sign in to comment.