-
Notifications
You must be signed in to change notification settings - Fork 15
39 lines (37 loc) · 1.02 KB
/
test.yaml
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
name: Test
on:
push:
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node: ["14", "16", "18", "20"]
vite: ["2", "3", "4", "5"]
exclude:
- node: "14"
vite: "5"
- node: "16"
vite: "5"
name: Node.js ${{ matrix.node }} + Vite ${{ matrix.vite }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Set yarn to ignore engines version check
run: yarn config set ignore-engines true
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Install specified version of Vite
run: yarn add vite@^${{ matrix.vite }}
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: Check style
if: ${{ matrix.os != 'windows-latest' }}
run: yarn format --check