Modernize to new Q#/QDK 1.x, refresh tech stack #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |