Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading