26
26
unacceptable_language_check_word_list :
27
27
type : string
28
28
description : " List of unacceptable words. Defaults to a sensible list of words."
29
- default : " blacklist whitelist slave master sane sanity insane insanity kill killed killing hang hung hanged hanging" # ignore-unacceptable-language
29
+ default : " blacklist whitelist slave master sane sanity insane insanity kill killed killing hang hung hanged hanging" # ignore-unacceptable-language
30
30
license_header_check_enabled :
31
31
type : boolean
32
32
description : " Boolean to enable the license header check job. Defaults to true."
56
56
concurrency :
57
57
group : ${{ github.workflow }}-${{ github.ref }}-soundness
58
58
cancel-in-progress : true
59
-
59
+
60
60
jobs :
61
61
api-breakage-check :
62
62
name : API breakage check
@@ -66,17 +66,17 @@ jobs:
66
66
image : ${{ inputs.api_breakage_check_container_image }}
67
67
timeout-minutes : 20
68
68
steps :
69
- - name : Checkout repository
70
- uses : actions/checkout@v4
71
- with :
72
- persist-credentials : false
73
- - name : Mark the workspace as safe
74
- # https://github.com/actions/checkout/issues/766
75
- run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
76
- - name : Run API breakage check
77
- run : |
78
- git fetch ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} ${GITHUB_BASE_REF}:pull-base-ref
79
- swift package diagnose-api-breaking-changes pull-base-ref
69
+ - name : Checkout repository
70
+ uses : actions/checkout@v4
71
+ with :
72
+ persist-credentials : false
73
+ - name : Mark the workspace as safe
74
+ # https://github.com/actions/checkout/issues/766
75
+ run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
76
+ - name : Run API breakage check
77
+ run : |
78
+ git fetch ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} ${GITHUB_BASE_REF}:pull-base-ref
79
+ swift package diagnose-api-breaking-changes pull-base-ref
80
80
81
81
docs-check :
82
82
name : Documentation check
@@ -86,57 +86,57 @@ jobs:
86
86
image : ${{ inputs.docs_check_container_image }}
87
87
timeout-minutes : 20
88
88
steps :
89
- - name : Checkout repository
90
- uses : actions/checkout@v4
91
- with :
89
+ - name : Checkout repository
90
+ uses : actions/checkout@v4
91
+ with :
92
92
persist-credentials : false
93
- - name : Run documentation check
94
- run : |
95
- apt-get -qq update && apt-get -qq -y install curl yq
96
- curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/check-docs.sh | bash
93
+ - name : Run documentation check
94
+ run : |
95
+ apt-get -qq update && apt-get -qq -y install curl yq
96
+ curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/check-docs.sh | bash
97
97
98
98
unacceptable-language-check :
99
99
name : Unacceptable language check
100
100
if : ${{ inputs.unacceptable_language_check_enabled }}
101
101
runs-on : ubuntu-latest
102
102
timeout-minutes : 1
103
103
steps :
104
- - name : Checkout repository
105
- uses : actions/checkout@v4
106
- with :
104
+ - name : Checkout repository
105
+ uses : actions/checkout@v4
106
+ with :
107
107
persist-credentials : false
108
- - name : Run unacceptable language check
109
- env :
110
- UNACCEPTABLE_WORD_LIST : ${{ inputs.unacceptable_language_check_word_list}}
111
- run : curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/check-unacceptable-language.sh | bash
108
+ - name : Run unacceptable language check
109
+ env :
110
+ UNACCEPTABLE_WORD_LIST : ${{ inputs.unacceptable_language_check_word_list}}
111
+ run : curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/check-unacceptable-language.sh | bash
112
112
113
113
license-header-check :
114
114
name : License headers check
115
115
if : ${{ inputs.license_header_check_enabled }}
116
116
runs-on : ubuntu-latest
117
117
timeout-minutes : 1
118
118
steps :
119
- - name : Checkout repository
120
- uses : actions/checkout@v4
121
- with :
119
+ - name : Checkout repository
120
+ uses : actions/checkout@v4
121
+ with :
122
122
persist-credentials : false
123
- - name : Run license header check
124
- env :
125
- PROJECT_NAME : ${{ inputs.license_header_check_project_name }}
126
- run : curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/check-license-header.sh | bash
123
+ - name : Run license header check
124
+ env :
125
+ PROJECT_NAME : ${{ inputs.license_header_check_project_name }}
126
+ run : curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/check-license-header.sh | bash
127
127
128
128
broken-symlink-check :
129
129
name : Broken symlinks check
130
130
if : ${{ inputs.broken_symlink_check_enabled }}
131
131
runs-on : ubuntu-latest
132
132
timeout-minutes : 1
133
133
steps :
134
- - name : Checkout repository
135
- uses : actions/checkout@v4
136
- with :
134
+ - name : Checkout repository
135
+ uses : actions/checkout@v4
136
+ with :
137
137
persist-credentials : false
138
- - name : Run broken symlinks check
139
- run : curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/check-broken-symlinks.sh | bash
138
+ - name : Run broken symlinks check
139
+ run : curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/check-broken-symlinks.sh | bash
140
140
141
141
format-check :
142
142
name : Format check
@@ -146,17 +146,17 @@ jobs:
146
146
image : swift:6.0-jammy
147
147
timeout-minutes : 10
148
148
steps :
149
- - name : Checkout repository
150
- uses : actions/checkout@v4
151
- with :
149
+ - name : Checkout repository
150
+ uses : actions/checkout@v4
151
+ with :
152
152
persist-credentials : false
153
- - name : Mark the workspace as safe
154
- # https://github.com/actions/checkout/issues/766
155
- run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
156
- - name : Run format check
157
- run : |
158
- apt-get -qq update && apt-get -qq -y install curl
159
- curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/check-swift-format.sh | bash
153
+ - name : Mark the workspace as safe
154
+ # https://github.com/actions/checkout/issues/766
155
+ run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
156
+ - name : Run format check
157
+ run : |
158
+ apt-get -qq update && apt-get -qq -y install curl
159
+ curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/check-swift-format.sh | bash
160
160
161
161
shell-check :
162
162
name : Shell check
@@ -166,14 +166,14 @@ jobs:
166
166
image : ${{ inputs.shell_check_container_image }}
167
167
timeout-minutes : 5
168
168
steps :
169
- - name : Checkout repository
170
- uses : actions/checkout@v4
171
- with :
169
+ - name : Checkout repository
170
+ uses : actions/checkout@v4
171
+ with :
172
172
persist-credentials : false
173
- - name : Mark the workspace as safe
174
- # https://github.com/actions/checkout/issues/766
175
- run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
176
- - name : Run shellcheck
177
- run : |
178
- apt-get -qq update && apt-get -qq -y install shellcheck
179
- git ls-files -z '*.sh' | xargs -0 shellcheck
173
+ - name : Mark the workspace as safe
174
+ # https://github.com/actions/checkout/issues/766
175
+ run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
176
+ - name : Run shellcheck
177
+ run : |
178
+ apt-get -qq update && apt-get -qq -y install shellcheck
179
+ git ls-files -z '*.sh' | xargs -0 shellcheck
0 commit comments