From a3cf289b1b8d0ab2a0f58176b936f438585ecbea Mon Sep 17 00:00:00 2001 From: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com> Date: Fri, 10 Jan 2025 14:51:46 -0800 Subject: [PATCH] Test? --- .github/workflows/ci.yml | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9bfb9e9a..d55e9f697 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,6 +87,9 @@ jobs: lint-js: runs-on: ubuntu-latest + if: | + github.ref == 'refs/heads/main' || + contains(github.event.pull_request.files.*.path, 'libs/sdk-js/') strategy: matrix: working-directory: @@ -109,9 +112,34 @@ jobs: - name: Build run: yarn build + test-js: + runs-on: ubuntu-latest + if: | + github.ref == 'refs/heads/main' || + contains(github.event.pull_request.files.*.path, 'libs/sdk-js/') + 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 tests + run: yarn test + ci_success: name: "CI Success" - needs: [lint, lint-js, test, test-langgraph, test-scheduler-kafka, integration-test] + needs: [lint, lint-js, test, test-langgraph, test-scheduler-kafka, integration-test, test-js] if: | always() runs-on: ubuntu-latest