test: Fix test independence and CI failures #86
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: Test Mini TypeScript Hero | |
| on: | |
| push: | |
| branches: [main, master, mini-typescript-hero-v4] | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| test: | |
| name: Test on ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [macos-latest, ubuntu-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true # Checkout submodule at pinned commit from repo | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18.x' | |
| - name: Install main dependencies | |
| run: npm install | |
| - name: Run main extension tests (Linux with xvfb) | |
| if: runner.os == 'Linux' | |
| run: xvfb-run -a npm test | |
| - name: Run main extension tests (macOS/Windows) | |
| if: runner.os != 'Linux' | |
| run: npm test | |
| - name: Install comparison test harness dependencies | |
| run: npm install | |
| working-directory: ./comparison-test-harness | |
| - name: Run comparison tests (Linux with xvfb) | |
| if: runner.os == 'Linux' | |
| run: xvfb-run -a npm test | |
| working-directory: ./comparison-test-harness | |
| - name: Run comparison tests (macOS/Windows) | |
| if: runner.os != 'Linux' | |
| run: npm test | |
| working-directory: ./comparison-test-harness |