Replace deprecated isNumber call #945
  
    
      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: | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [macOS-latest, ubuntu-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Install dependencies | |
| run: | | |
| npm ci | |
| npm install -g vsce | |
| - name: Build | |
| run: | | |
| npm run vscode:prepublish | |
| vsce package | |
| - name: Check | |
| run: npm run lint | |
| - name: Test Non-Linux | |
| if: matrix.os != 'ubuntu-latest' | |
| run: npm test --silent | |
| - name: Test Linux | |
| if: matrix.os == 'ubuntu-latest' | |
| run: xvfb-run --auto-servernum npm test --silent | |
| - name: Test TLA+ Grammar | |
| run: npm run test:tlaplus-grammar | |
| - name: Rename artifact | |
| if: matrix.os == 'ubuntu-latest' | |
| run: mv vscode-ide-*.vsix vscode-tlaplus-$(git log -1 --format=%cd --date="format:%Y.%-m.%-d%H%M").vsix | |
| - name: Upload artifact | |
| if: matrix.os == 'ubuntu-latest' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: vscode-tlaplus-ci.vsix | |
| path: ${{ github.workspace }}/vscode-tlaplus-*.vsix |