-
-
Notifications
You must be signed in to change notification settings - Fork 103
84 lines (72 loc) · 1.88 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
name: Test
on:
push:
branches-ignore:
- 'circleci'
paths-ignore:
- 'samples/*'
- 'stress/*'
- 'performance/*'
- '.github/FUNDING.YML'
- '.github/workflows/build.yml'
- '**/*.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'
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true # required to setup CSC
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1
jobs:
test:
runs-on: ${{ matrix.os }}
name: test-${{ matrix.os }}-node-${{ matrix.node }}
strategy:
fail-fast: false
matrix:
os: [macos-13, macos-14, ubuntu-22.04, windows-2022]
# os: [macos-14, windows-2022]
node: [18, 20, 22, 23]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup env
uses: ./.github/actions/setup-env
with:
node: ${{ matrix.node }}
os: ${{ matrix.os }}
# - if: runner.os == 'macOS' && matrix.node == '16.x'
# name: Add missing packages for macOS NodeJs 16
# run: |
# pip install setuptools
- if: runner.os == 'Windows'
name: Run Windows tests
uses: ./.github/actions/test-windows
with:
node: ${{ matrix.node }}
- if: runner.os == 'macOS' || runner.os == 'Linux'
name: "Run macOS|Linux tests"
run: node tools/test.js CI
env:
EDGE_USE_CORECLR: 1
- name: Test report
uses: ./.github/actions/create-test-report
with:
node: ${{ matrix.node }}
os: ${{ matrix.os }}