From 32cdead71a47e3099d011b06f6cfea5e423e0727 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Mon, 28 Jul 2025 19:46:23 -0700 Subject: [PATCH] update packages script --- .github/workflows/pr_checks.yaml | 26 ++++++++++++++++---------- packages/config-types/package.json | 2 +- packages/llm-info/package.json | 2 +- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pr_checks.yaml b/.github/workflows/pr_checks.yaml index 99a724d4d..5d87ad70b 100644 --- a/.github/workflows/pr_checks.yaml +++ b/.github/workflows/pr_checks.yaml @@ -163,20 +163,25 @@ jobs: cd extensions/vscode npm run vitest + get-packages-matrix: + runs-on: ubuntu-latest + outputs: + packages: ${{ steps.get-packages.outputs.packages }} + steps: + - uses: actions/checkout@v4 + - name: Get package list + id: get-packages + run: | + packages=$(ls -1 packages/ | jq -R . | jq -s .) + echo "packages=$packages" >> $GITHUB_OUTPUT + echo "Found packages: $packages" + packages-checks: + needs: get-packages-matrix runs-on: ubuntu-latest strategy: matrix: - package: - [ - hub, - config-yaml, - fetch, - config-types, - continue-sdk, - llm-info, - openai-adapters, - ] + package: ${{ fromJson(needs.get-packages-matrix.outputs.packages) }} steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -494,6 +499,7 @@ jobs: - gui-checks - binary-checks - vscode-checks + - get-packages-matrix - packages-checks - vscode-get-test-file-matrix - vscode-package-extension-linux diff --git a/packages/config-types/package.json b/packages/config-types/package.json index b33980618..635e37e97 100644 --- a/packages/config-types/package.json +++ b/packages/config-types/package.json @@ -6,7 +6,7 @@ "types": "dist/index.d.ts", "type": "module", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", + "test": "echo 'No tests to run'", "build": "tsc" }, "author": "Nate Sesti and Ty Dunn", diff --git a/packages/llm-info/package.json b/packages/llm-info/package.json index 75989edbb..8cba7f00b 100644 --- a/packages/llm-info/package.json +++ b/packages/llm-info/package.json @@ -6,7 +6,7 @@ "types": "dist/index.d.ts", "type": "module", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", + "test": "echo 'No tests to run'", "build": "tsc" }, "author": "Nate Sesti and Ty Dunn",