feat(ci): add a github action to lint:staged #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |