Skip to content

Modernize to new Q#/QDK 1.x, refresh tech stack #1

Modernize to new Q#/QDK 1.x, refresh tech stack

Modernize to new Q#/QDK 1.x, refresh tech stack #1

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Build grammar
run: npm run build
- name: Verify committed grammars are in sync with the source
run: |
if ! git diff --exit-code -- grammars/; then
echo "::error::grammars/ is out of date. Run 'npm run build' and commit the result."
exit 1
fi
- name: Run tests
run: npm test