-
Notifications
You must be signed in to change notification settings - Fork 3
91 lines (82 loc) · 3.24 KB
/
Copy pathci-testing.yml
File metadata and controls
91 lines (82 loc) · 3.24 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
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
#file: noinspection UndefinedAction,UndefinedParamsPresent
name: "CI: Full Test Suite"
permissions:
contents: read
statuses: write
checks: write
on:
push:
branches:
- core
workflow_dispatch:
inputs:
pr_number:
description: 'PR number to test. Leave empty to test the current branch commit.'
required: false
type: string
enable_coverage:
description: 'Enable code coverage'
type: boolean
default: true
run_windows:
description: 'Run Windows GUI tests'
type: boolean
default: true
run_windows_playwright:
description: 'Run Windows Playwright tests'
type: boolean
default: true
run_linux:
description: 'Run Linux GUI tests'
type: boolean
default: true
run_macos:
description: 'Run macOS GUI tests'
type: boolean
default: true
run_docs:
description: 'Run docs validation'
type: boolean
default: true
run_trim_aot:
description: 'Run trim and NativeAOT compatibility validation'
type: boolean
default: true
concurrency:
group: ${{ github.event_name == 'push' && github.ref == 'refs/heads/core' && format('core-{0}', github.workflow) || format('manual-{0}', github.run_id) }}
cancel-in-progress: ${{ github.event_name == 'push' && github.ref == 'refs/heads/core' }}
jobs:
python-tests:
name: "CI: python"
uses: ./.github/workflows/shared-testing-python.yml
with:
enable_coverage: ${{ github.event_name == 'push' || inputs.enable_coverage }}
target_sha: ${{ github.sha }}
workflow_url: ${{ format('https://github.com/{0}/actions/runs/{1}', github.repository, github.run_id) }}
run:
name: "CI: tests"
needs: python-tests
uses: ./.github/workflows/shared-testing.yml
with:
pr_number: ${{ inputs.pr_number }}
run_windows: ${{ github.event_name == 'push' || inputs.run_windows }}
run_windows_playwright: ${{ github.event_name == 'push' || inputs.run_windows_playwright }}
run_linux: ${{ github.event_name == 'push' || inputs.run_linux }}
run_macos: ${{ github.event_name == 'push' || inputs.run_macos }}
run_docs: ${{ github.event_name == 'push' || inputs.run_docs }}
run_trim_aot: ${{ github.event_name == 'push' || inputs.run_trim_aot }}
enable_test_exports: true
enable_coverage: ${{ github.event_name == 'push' || inputs.enable_coverage }}
secrets: inherit
coverage:
name: "CI: coverage"
needs: [run]
if: ${{ github.event_name == 'push' || inputs.enable_coverage }}
uses: ./.github/workflows/shared-coverage.yml
with:
pr_number: ${{ inputs.pr_number }}
target_sha: ${{ github.sha }}
permissions:
contents: write
pull-requests: write
checks: write