generated from stijnvanhulle/template
-
-
Notifications
You must be signed in to change notification settings - Fork 71
104 lines (90 loc) · 2.6 KB
/
e2e.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: e2e
on:
pull_request:
paths-ignore:
- "docs/**"
- "examples/**"
- "**/*.md"
workflow_dispatch:
# inputs:
# os:
# description: Choose os
# required: true
# type: choice
# options:
# - ubuntu-latest
# - macos-latest
# - windows-latest
jobs:
build:
name: Build and test
timeout-minutes: 30
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [20]
## comment out for support of node 19,20
# experimental: [false]
## comment for support of node 19,20
# exclude:
# - os: ubuntu-latest
# node-version: 20
include:
- os: windows-latest
node-version: 20
- os: ubuntu-latest
node-version: 20
## comment out for support of node 19,20
# include:
# - os: windows-latest
# installer: pnpm run
# - os: ubuntu-latest
# installer: bun run
# - os: windows-latest
# node-version: 19
# installer: pnpm run
# experimental: true
# - os: ubuntu-latest
# node-version: 19
# installer: bun run
# experimental: true
# - os: windows-latest
# node-version: 20
# installer: pnpm run
# experimental: true
# - os: ubuntu-latest
# node-version: 20
# installer: bun run
# experimental: true
runs-on: ${{ matrix.os }}
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup
uses: ./.github/setup
- name: Build
if: ${{ matrix.os == 'windows-latest' }}
run: pnpm run build
- name: Build with Bun
if: ${{ matrix.os == 'ubuntu-latest' }}
run: bun run build
- name: Install e2e dependencies
run: pnpm install --prefer-offline
working-directory: ./e2e
- name: E2e
working-directory: ./e2e
if: ${{ matrix.os == 'windows-latest' }}
env:
NODE_OPTIONS: "--max_old_space_size=4096"
run: |
bun run generate
- name: E2e with Bun
working-directory: ./e2e
if: ${{ matrix.os == 'ubuntu-latest' }}
env:
NODE_OPTIONS: "--max_old_space_size=4096"
run: |
bun run generate