-
-
Notifications
You must be signed in to change notification settings - Fork 483
40 lines (38 loc) · 875 Bytes
/
ci.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
30
31
32
33
34
35
36
37
38
39
40
---
name: CI
on:
push:
branches:
- v7
pull_request:
branches:
- v7
jobs:
build:
runs-on: ubuntu-latest
env:
CI: true
strategy:
matrix:
node-version: [18.x]
name: Use Node.js ${{ matrix.node-version }}
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: yarn install
run: yarn
- name: test:types
run: yarn test:types
- name: test:unit
run: yarn test:unit
- name: test:e2e-ssr
run: yarn test:e2e-ssr
- name: test:e2e-browser
run: yarn test:e2e-browser
- name: Linting
# Only test on one version to avoid duplicate linter annotations.
if: ${{ matrix.node-version == '18.x' }}
run: yarn lint