-
-
Notifications
You must be signed in to change notification settings - Fork 6
68 lines (67 loc) · 2.58 KB
/
self-test.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
name: Self-test the reusable workflow
on:
workflow_dispatch:
inputs:
with_release_mode_testing:
type: boolean
required: false
default: true
description: "Set to 'true' to enable testing in release mode as well. Defaults to 'false'."
with_coverage:
type: boolean
required: false
default: true
description: "Set to 'true' to collect and upload code coverage data. Defaults to 'false'."
with_tsan:
type: boolean
required: false
default: true
description: "Set to 'true' to run tests with Thread Sanitizer. Defaults to 'true'."
warnings_as_errors:
type: boolean
required: false
default: true
description: "Set to 'true' to treat warnings as errors. Defaults to 'true'."
with_api_check:
type: boolean
required: false
default: true
description: "Set to 'true' to run the SwiftPM public API breakage check. Defaults to 'true'."
with_linting:
type: boolean
required: false
default: true
description: "Set to 'true' to run swift-format's lint process. Defaults to 'true'."
with_windows:
type: boolean
required: false
default: true
description: "Set to 'true' to run tests on Windows. Defaults to 'true'."
with_musl:
type: boolean
required: false
default: true
description: "Set to 'true' to build with the Static Linux SDK to test MUSL compatibility. Defaults to 'true'."
ios_scheme_name:
type: string
required: false
default: 'sample-testable-package-Package'
description: "Set to the scheme name in Xcode to run tests on iOS. Defaults to 'sample-testable-package', use '' to not run any tests."
pull_request: { branches: [ main ] }
push: { branches: [ main ] }
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
call-workflow:
uses: ./.github/workflows/run-unit-tests.yml
with:
with_release_mode_testing: ${{ inputs.with_release_mode_testing || true }}
with_coverage: ${{ inputs.with_coverage || false }}
with_tsan: ${{ inputs.with_tsan || false }}
with_api_check: ${{ inputs.with_api_check || true }}
warnings_as_errors: ${{ inputs.warnings_as_errors || true }}
with_linting: ${{ inputs.with_linting || true }}
with_windows: ${{ inputs.with_windows || true }}
with_musl: ${{ inputs.with_musl || true }}
ios_scheme_name: ${{ inputs.ios_scheme_name || 'sample-testable-package-Package' }}