Skip to content

Update config

Update config #224

Workflow file for this run

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 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: 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 22.x
uses: actions/setup-node@v4
with:
node-version: 22.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