Bump github/codeql-action from 3 to 4 #1798
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: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| changes: | |
| name: Detect Changes | |
| runs-on: ubuntu-latest | |
| outputs: | |
| tm_tests: ${{ steps.filter.outputs.tm_tests }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Paths Filter | |
| id: filter | |
| uses: dorny/paths-filter@v3 | |
| with: | |
| filters: | | |
| tm_tests: | |
| - 'tm-tests/**' | |
| - 'extension/language/syntaxes/cadence.tmGrammar.json' | |
| linter: | |
| name: "Code Style Standard" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Use Node.js 22.x | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: 22.x | |
| - run: npm ci | |
| - run: npm run lint | |
| grammar-tests: | |
| name: "TextMate Grammar Tests" | |
| runs-on: ubuntu-latest | |
| needs: changes | |
| if: needs.changes.outputs.tm_tests == 'true' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Use Node.js 22.x | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: 22.x | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run grammar unit tests | |
| run: npm run test-grammar | |
| - name: Run regression tests | |
| run: npm run test-grammar-regression | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Use Node.js 22.x | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: 22.x | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Package | |
| run: npm run package | |
| windows-build: | |
| name: Windows Build | |
| runs-on: windows-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Use Node.js 22.x | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: 22.x | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Package | |
| run: npm run package | |
| test: | |
| name: Tests | |
| timeout-minutes: 60 | |
| strategy: | |
| matrix: | |
| os: [macos-latest, ubuntu-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Use Node.js 22.x | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: 22.x | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Setup Xvfb (Linux) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| nohup Xvfb :99 -screen 0 1024x768x16 > /dev/null 2>&1 & | |
| echo "XVFB_PID=$!" >> "$GITHUB_ENV" | |
| echo "DISPLAY=:99.0" >> "$GITHUB_ENV" | |
| while [ ! -e /tmp/.X11-unix/X99 ]; do sleep 0.1; done | |
| - name: Integration Tests | |
| run: npm run test | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Cleanup Xvfb (Linux) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: kill $XVFB_PID |