From 4cbfdb5f5c3c3af810fd7ef9a2c6d1657460294c Mon Sep 17 00:00:00 2001 From: Alex Yang <himself65@outlook.com> Date: Wed, 19 Feb 2025 19:11:53 +0800 Subject: [PATCH] ci: only run in pull request (#1669) --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d2bc9162b..8a4dee244 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -119,6 +119,7 @@ jobs: size-limit: runs-on: ubuntu-latest + if: github.event_name == 'pull_request' name: Size Limit steps: - uses: actions/checkout@v4 @@ -132,12 +133,13 @@ jobs: run: pnpm install - name: Build llamaindex run: pnpm run build - - uses: andresz1/size-limit-action@v1 + - uses: andresz1/size-limit-action@94bc357df29c36c8f8d50ea497c3e225c3c95d1d with: github_token: ${{ secrets.GITHUB_TOKEN }} directory: e2e/examples/vite-import-llamaindex skip_step: "install" build_script: build + package_manager: pnpm typecheck-examples: runs-on: ubuntu-latest -- GitLab