Skip to content

Commit f98e48e

Browse files
authored
Merge pull request #3 from qsharp-community/modernize
run tests against qdk samples
2 parents 7edb684 + b47c288 commit f98e48e

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,35 @@ jobs:
4040
4141
- name: Run tests
4242
run: npm test
43+
44+
# Tokenizes the official Q# samples from a pinned QDK release and fails if
45+
# any of them produce `invalid` / `illegal` scopes. Bump QDK_REF to test
46+
# against a newer language surface.
47+
corpus:
48+
runs-on: ubuntu-latest
49+
env:
50+
QDK_REF: v1.29.0
51+
steps:
52+
- uses: actions/checkout@v4
53+
54+
- name: Check out the QDK samples (pinned)
55+
uses: actions/checkout@v4
56+
with:
57+
repository: microsoft/qdk
58+
ref: ${{ env.QDK_REF }}
59+
path: qdk
60+
sparse-checkout: samples
61+
62+
- name: Use Node.js
63+
uses: actions/setup-node@v4
64+
with:
65+
node-version: 20.x
66+
cache: npm
67+
68+
- name: Install dependencies
69+
run: npm ci
70+
71+
- name: Run tests against the QDK ${{ env.QDK_REF }} samples
72+
env:
73+
QDK_SAMPLES: ${{ github.workspace }}/qdk/samples
74+
run: npm test

0 commit comments

Comments
 (0)