From b47c2888baac13f5639261280991d8fc261902a3 Mon Sep 17 00:00:00 2001 From: filipw Date: Thu, 9 Jul 2026 17:31:37 +0200 Subject: [PATCH] run tests against qdk samples --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 09567d9..bb64736 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,3 +40,35 @@ jobs: - name: Run tests run: npm test + + # Tokenizes the official Q# samples from a pinned QDK release and fails if + # any of them produce `invalid` / `illegal` scopes. Bump QDK_REF to test + # against a newer language surface. + corpus: + runs-on: ubuntu-latest + env: + QDK_REF: v1.29.0 + steps: + - uses: actions/checkout@v4 + + - name: Check out the QDK samples (pinned) + uses: actions/checkout@v4 + with: + repository: microsoft/qdk + ref: ${{ env.QDK_REF }} + path: qdk + sparse-checkout: samples + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: 20.x + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Run tests against the QDK ${{ env.QDK_REF }} samples + env: + QDK_SAMPLES: ${{ github.workspace }}/qdk/samples + run: npm test