Skip to content

Commit

Permalink
feat(ci): add a github action to lint:staged
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbertrand committed Jan 16, 2024
1 parent 03ce1b6 commit 3155190
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/lint-api-lib.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: lint api/lib/domain/usecases new files
on: push
jobs:
lint-api-lib-staged:
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: npm

- name: Lint api/lib/domain/usecases
working-directory: ./api
run: |
npm ci
npm run lint:staged:api-lib

0 comments on commit 3155190

Please sign in to comment.