Skip to content

Commit 005194a

Browse files
committed
adopt github actions
1 parent 4e56d9a commit 005194a

File tree

5 files changed

+137
-0
lines changed

5 files changed

+137
-0
lines changed

.github/release.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
changelog:
2+
categories:
3+
- title: SemVer Major
4+
labels:
5+
- ⚠️ semver/major
6+
- title: SemVer Minor
7+
labels:
8+
- semver/minor
9+
- title: SemVer Patch
10+
labels:
11+
- semver/patch
12+
- title: Other Changes
13+
labels:
14+
- semver/none

.github/workflows/pull_request.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: PR
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
7+
jobs:
8+
soundness:
9+
name: Soundness
10+
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
11+
with:
12+
api_breakage_check_enabled: false
13+
license_header_check_project_name: "Swift Distributed Actors"
14+
15+
unit-tests:
16+
name: Unit tests
17+
uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main
18+
with:
19+
name: "Unit tests"
20+
matrix_linux_command: "swift test"
21+
matrix_linux_5_9_enabled: false
22+
matrix_linux_5_10_enabled: true
23+
matrix_linux_6_0_enabled: true
24+
matrix_linux_6_0_command_override: "swift test"
25+
matrix_linux_nightly_6_0_enabled: true
26+
matrix_linux_nightly_main_enabled: true
27+
matrix_windows_6_0_enabled: false
28+
matrix_windows_nightly_6_0_enabled: false
29+
matrix_windows_nightly_main_enabled: false
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: PR label
2+
3+
on:
4+
pull_request:
5+
types: [labeled, unlabeled, opened, reopened, synchronize]
6+
7+
jobs:
8+
semver-label-check:
9+
name: Semantic Version label check
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 1
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
with:
16+
persist-credentials: false
17+
- name: Check for Semantic Version label
18+
uses: apple/swift-nio/.github/actions/pull_request_semver_label_checker@main

.licenseignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Dockerfile
2+
**/Dockerfile

.swift-format

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
3+
4+
"version" : 1,
5+
"indentation" : {
6+
"spaces" : 4
7+
},
8+
"tabWidth" : 4,
9+
"fileScopedDeclarationPrivacy" : {
10+
"accessLevel" : "private"
11+
},
12+
"spacesAroundRangeFormationOperators" : false,
13+
"indentConditionalCompilationBlocks" : false,
14+
"indentSwitchCaseLabels" : false,
15+
"lineBreakAroundMultilineExpressionChainComponents" : false,
16+
"lineBreakBeforeControlFlowKeywords" : false,
17+
"lineBreakBeforeEachArgument" : true,
18+
"lineBreakBeforeEachGenericRequirement" : true,
19+
"lineLength" : 120,
20+
"maximumBlankLines" : 1,
21+
"respectsExistingLineBreaks" : true,
22+
"prioritizeKeepingFunctionOutputTogether" : true,
23+
"noAssignmentInExpressions" : {
24+
"allowedFunctions" : [
25+
"XCTAssertNoThrow",
26+
"XCTAssertThrowsError"
27+
]
28+
},
29+
"rules" : {
30+
"NoBlockComments" : false,
31+
"EndOfLineComment" : false,
32+
"ReplaceForEachWithForLoop" : false,
33+
34+
"AllPublicDeclarationsHaveDocumentation" : false,
35+
"AlwaysUseLiteralForEmptyCollectionInit" : false,
36+
"AlwaysUseLowerCamelCase" : false,
37+
"AmbiguousTrailingClosureOverload" : true,
38+
"BeginDocumentationCommentWithOneLineSummary" : false,
39+
"DoNotUseSemicolons" : true,
40+
"DontRepeatTypeInStaticProperties" : true,
41+
"FileScopedDeclarationPrivacy" : true,
42+
"FullyIndirectEnum" : true,
43+
"GroupNumericLiterals" : true,
44+
"IdentifiersMustBeASCII" : true,
45+
"NeverForceUnwrap" : false,
46+
"NeverUseForceTry" : false,
47+
"NeverUseImplicitlyUnwrappedOptionals" : false,
48+
"NoAccessLevelOnExtensionDeclaration" : true,
49+
"NoAssignmentInExpressions" : true,
50+
"NoBlockComments" : true,
51+
"NoCasesWithOnlyFallthrough" : true,
52+
"NoEmptyTrailingClosureParentheses" : true,
53+
"NoLabelsInCasePatterns" : true,
54+
"NoLeadingUnderscores" : false,
55+
"NoParensAroundConditions" : true,
56+
"NoVoidReturnOnFunctionSignature" : true,
57+
"OmitExplicitReturns" : true,
58+
"OneCasePerLine" : true,
59+
"OneVariableDeclarationPerLine" : true,
60+
"OnlyOneTrailingClosureArgument" : true,
61+
"OrderedImports" : true,
62+
"ReplaceForEachWithForLoop" : true,
63+
"ReturnVoidInsteadOfEmptyTuple" : true,
64+
"UseEarlyExits" : false,
65+
"UseExplicitNilCheckInConditions" : false,
66+
"UseLetInEveryBoundCaseVariable" : false,
67+
"UseShorthandTypeNames" : true,
68+
"UseSingleLinePropertyGetter" : false,
69+
"UseSynthesizedInitializer" : false,
70+
"UseTripleSlashForDocumentationComments" : true,
71+
"UseWhereClausesInForLoops" : false,
72+
"ValidateDocumentationComments" : false
73+
}
74+
}

0 commit comments

Comments
 (0)