Skip to content

Commit 62111dd

Browse files
committed
[GHA] Update to the latest workflows
# Motivation I made more progress on the reusable workflows in NIO so it's even easier to adopt them. # Modification This PR fixes up the renamed workflow references and adds unit tests and cxx-interop checks. # Result Green GH actions CI
1 parent fa72f86 commit 62111dd

File tree

2 files changed

+26
-10
lines changed

2 files changed

+26
-10
lines changed

.github/workflows/pull_request.yml

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
11
name: Pull Request
22

33
on:
4-
pull_request:
5-
types: [opened, reopened, synchronize, ready_for_review]
6-
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
77
jobs:
8-
call-reusable-pull-request-workflow:
9-
name: Checks
10-
uses: apple/swift-nio/.github/workflows/reusable_pull_request.yml@main
11-
with:
12-
benchmarks_linux_enabled: false
13-
unacceptable_language_check_enabled: false
14-
license_header_check_project_name: "SwiftOpenAPIGenerator"
8+
soundness:
9+
name: Soundness
10+
uses: apple/swift-nio/.github/workflows/soundness.yml@main
11+
with:
12+
license_header_check_project_name: "SwiftOpenAPIGenerator"
13+
unacceptable_language_check_enabled: false
14+
15+
unit-tests:
16+
name: Checks
17+
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
18+
with:
19+
linux_5_8_enabled: false
20+
linux_5_9_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error"
21+
linux_5_10_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error"
22+
linux_nightly_6_0_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error"
23+
linux_nightly_main_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error"
24+
25+
cxx-interop:
26+
name: Checks
27+
uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main
28+
with:
29+
linux_5_8_enabled: false

scripts/check-license-headers.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ read -ra PATHS_TO_CHECK_FOR_LICENSE <<< "$( \
4242
":(exclude).gitignore" \
4343
":(exclude).spi.yml" \
4444
":(exclude).swift-format" \
45+
":(exclude).licenseignore" \
4546
":(exclude).github/*" \
4647
":(exclude)CODE_OF_CONDUCT.md" \
4748
":(exclude)CONTRIBUTING.md" \

0 commit comments

Comments
 (0)