-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (29 loc) · 862 Bytes
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Svelte library pull requests
on:
pull_request:
branches:
- main
jobs:
svelte-library:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
version: ['20.x']
steps:
- name: Checkout svelte library repository
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- name: Check lint errors
run: npm run lint
- name: Run unit tests
run: npm run test
- name: Run e2e tests
run: |
npm run build
npm run preview &
npm run e2e:ci