-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (45 loc) · 1.02 KB
/
test.yml
File metadata and controls
48 lines (45 loc) · 1.02 KB
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
41
42
43
44
45
46
47
48
name: Test
on:
push:
permissions:
contents: read
jobs:
test:
name: (${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Enable Corepack
run: corepack enable
- name: Install
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
.cargo-cache
target/
key: cargo-${{ matrix.os }}
- name: Install dependencies
run: yarn install
- run: yarn build
- name: Next.js
run: |
cd examples/next
yarn
yarn build
- name: Vite
run: |
cd examples/vite
yarn
yarn build