-
-
Notifications
You must be signed in to change notification settings - Fork 93
138 lines (126 loc) · 3.34 KB
/
main.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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
name: Test
on:
pull_request:
paths-ignore:
- 'samples/*'
- 'stress/*'
- 'performance/*'
- '.github/FUNDING.YML'
- '.github/workflows/build.yml'
- '.github/workflows/build*.yml'
- '.github/actions/test-build/action.yml'
- '.github/actions/build*/*.*'
- '.github/actions/build/*.*'
- '**/*.md'
- '**/*.d.ts'
- '**/*.bat'
- '.travis.yml'
- 'Dockerfile'
- '.gitconfig'
- '.gitignore'
- 'appveyor*.*'
- 'LICENSE*'
- '.idea/**'
- '.vscode/**'
- '*.bat'
- '*.nuspec'
- 'tools/nuget/*'
- '.npmignore'
- 'test/config.json'
- 'test/double'
- '.circleci'
- '.circleci/*'
- 'README.md'
- '*.sln'
- '*.vcxproj'
push:
branches-ignore:
- 'circleci'
paths-ignore:
- 'samples/*'
- 'stress/*'
- 'performance/*'
- '.github/FUNDING.YML'
- '.github/workflows/build.yml'
- '.github/workflows/build*.yml'
- '.github/actions/test-build/action.yml'
- '.github/actions/build*/*.*'
- '.github/actions/build/*.*'
- '**/*.md'
- '**/*.d.ts'
- '**/*.bat'
- '.travis.yml'
- 'Dockerfile'
- '.gitconfig'
- '.gitignore'
- 'appveyor*.*'
- 'LICENSE*'
- '.idea/**'
- '.vscode/**'
- '*.bat'
- '*.nuspec'
- 'tools/nuget/*'
- '.npmignore'
- 'test/config.json'
- 'test/double'
- '.circleci'
- '.circleci/*'
- 'README.md'
- '*.sln'
- '*.vcxproj'
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true # required to setup CSC
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-13, macos-14, ubuntu-22.04, windows-2022]
# os: [ macos-14, ubuntu-22.04]
# electron: [32.1.2]
electron: [29.4.6, 30.5.1, 31.7.3, 32.2.2, 33.0.2]
# electron: [31.6.0, 32.1.0]
name: test-${{ matrix.os }}-v${{ matrix.electron }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup env
uses: ./.github/actions/setup-env
with:
electron: ${{ matrix.electron }}
os: ${{ matrix.os }}
replace-version: true
- if: runner.os == 'macOS' || runner.os == 'Linux'
name: Check electron-edge-js build file
id: check_build
uses: andstor/file-existence-action@v3
with:
files: "build/Release/edge_coreclr.node"
fail: true
ignore_case: true
- if: runner.os == 'Windows'
name: Run Windows tests
uses: ./.github/actions/test-windows
with:
electron: ${{ matrix.electron }}
- if: runner.os == 'macOS'
name: Run macOS tests
run: node tools/test.js CI
timeout-minutes: 10
- if: runner.os == 'Linux'
name: Run Linux tests
timeout-minutes: 10
run: |
export DISPLAY=:99
echo "DISPLAY=:99" >> $GITHUB_ENV
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
sleep 3
node tools/test.js CI
- name: Test report
uses: ./.github/actions/create-test-report
with:
electron: ${{ matrix.electron }}
os: ${{ matrix.os }}