2.3.1 #228
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: Integration | |
| on: push | |
| jobs: | |
| build-and-lint: | |
| name: Build and Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: latest | |
| - name: Use Node.js 22.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - name: Build | |
| run: pnpm build | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist/ | |
| test: | |
| name: Test production builds | |
| needs: build-and-lint | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| jbrowse-version: [nightly, v3.7.0] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: latest | |
| - name: Use Node.js 22.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - name: Download build artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist/ | |
| - name: Setup JBrowse ${{ matrix.jbrowse-version }} | |
| run: | | |
| if [ "${{ matrix.jbrowse-version }}" = "nightly" ]; then | |
| pnpm dlx @jbrowse/cli create .test-jbrowse --nightly | |
| else | |
| pnpm dlx @jbrowse/cli create .test-jbrowse-${{ matrix.jbrowse-version }} --tag ${{ matrix.jbrowse-version }} | |
| fi | |
| - name: Install Puppeteer browsers | |
| run: npx puppeteer browsers install chrome | |
| - name: Run tests | |
| run: pnpm vitest run | |
| env: | |
| TEST_JBROWSE_VERSION: ${{ matrix.jbrowse-version }} | |
| - name: Upload screenshots | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: screenshots-${{ matrix.jbrowse-version }} | |
| path: test-screenshots/ |