From 315519015105bcdd8730b42403367945d066e2ea Mon Sep 17 00:00:00 2001 From: Yann Bertrand <5855339+yannbertrand@users.noreply.github.com> Date: Tue, 16 Jan 2024 17:22:08 +0100 Subject: [PATCH] feat(ci): add a github action to lint:staged --- .github/workflows/lint-api-lib.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/lint-api-lib.yaml diff --git a/.github/workflows/lint-api-lib.yaml b/.github/workflows/lint-api-lib.yaml new file mode 100644 index 00000000000..d796faadc21 --- /dev/null +++ b/.github/workflows/lint-api-lib.yaml @@ -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