Node 24 #229
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: Push | |
| on: push | |
| jobs: | |
| build-and-lint: | |
| name: Build, lint, and unit tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: latest | |
| - name: Use Node.js 24.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24.x | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - name: Build | |
| run: pnpm build | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Unit tests | |
| run: pnpm vitest run --exclude 'test/**' | |
| e2e-tests: | |
| name: E2E tests (${{ matrix.jbrowse-version }}) | |
| runs-on: ubuntu-latest | |
| needs: build-and-lint | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| jbrowse-version: [v3.7.0, nightly] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: latest | |
| - name: Use Node.js 24.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24.x | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - name: Install Puppeteer Chrome | |
| run: npx puppeteer browsers install chrome | |
| - name: Install JBrowse CLI | |
| run: pnpm add -g @jbrowse/cli | |
| - name: Setup JBrowse ${{ matrix.jbrowse-version }} | |
| run: | | |
| if [ "${{ matrix.jbrowse-version }}" = "nightly" ]; then | |
| jbrowse create .test-jbrowse-nightly --nightly | |
| else | |
| jbrowse create .test-jbrowse-${{ matrix.jbrowse-version }} --tag ${{ matrix.jbrowse-version }} | |
| fi | |
| - name: Run E2E tests | |
| run: | |
| TEST_JBROWSE_VERSION=${{ matrix.jbrowse-version }} pnpm vitest run | |
| test/ | |
| - name: Upload screenshots on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: screenshots-${{ matrix.jbrowse-version }} | |
| path: test-screenshots/ | |
| spellcheck: | |
| name: Spell check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Check spelling | |
| uses: crate-ci/typos@master |