From a15cab8430629d809ca9e03719834a7e7c6887ff Mon Sep 17 00:00:00 2001 From: vbarda Date: Tue, 18 Jun 2024 09:44:16 -0400 Subject: [PATCH] add js lint step --- .github/workflows/ci.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ec781364..ab25d72b1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,9 +57,33 @@ working-directory: ${{ matrix.working-directory }} secrets: inherit + lint-js: + runs-on: ubuntu-latest + strategy: + matrix: + working-directory: + - "libs/sdk-js" + defaults: + run: + working-directory: ${{ matrix.working-directory }} + steps: + - uses: actions/checkout@v3 + - name: Setup Node.js (LTS) + uses: actions/setup-node@v3 + with: + node-version: "20" + cache: "yarn" + cache-dependency-path: ${{ matrix.working-directory }}/yarn.lock + - name: Install dependencies + run: yarn install + - name: Run lint + run: yarn lint + - name: Build + run: yarn build + ci_success: name: "CI Success" - needs: [build, lint, test] + needs: [build, lint, lint-js, test] if: | always() runs-on: ubuntu-latest