Skip to content

Svelte 5 compatibility #401

Svelte 5 compatibility

Svelte 5 compatibility #401

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
node-version: [16, 18, 20]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
# Now install and run tests
- run: npm ci
- run: npm run build
- run: npm test
# Run lint and version tests as it's own job (also sets up caching of npm packages)
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: 18
cache: "npm"
# Now install packages and lint
- run: npm ci
- run: npm run lint
# now build and run compatibility tests
- run: npm run build
- run: npm run test:compatibility