-
-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (44 loc) · 1.1 KB
/
cross.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Cross
on:
push:
branches:
- main
tags:
pull_request:
branches:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
MODE: test
NODE_ENV: testing
jobs:
build:
timeout-minutes: 10
strategy:
max-parallel: 2
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node_version: [18, 19, 20]
architecture: [x64] #, arm64 ] # arm,
runs-on: ${{ matrix.os }}
name: Node ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.6.6
- uses: actions/setup-node@v3
with:
cache: 'pnpm'
node-version: ${{ matrix.node_version }}
architecture: ${{ matrix.architecture }}
check-latest: true
- name: Install dependencies
run: pnpm install
- name: Build
run: npm run build
- name: Run tests for ${{runner.os}}
run: npm run test