Skip to content

Commit a586294

Browse files
authored
ci: 🔄 synced file(s) with ordo-one/public-repository-templates (#10)
1 parent bc9fd1e commit a586294

File tree

5 files changed

+24
-8
lines changed

5 files changed

+24
-8
lines changed

‎.github/workflows/swift-benchmark-delta.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Run benchmarks for PR branch
4242
if: ${{ env.hasBenchmark == '1' }}
4343
run: |
44-
swift package --allow-writing-to-directory .benchmarkBaselines/ benchmark update-baseline pull_request
44+
swift package --allow-writing-to-directory .benchmarkBaselines/ benchmark baseline update pull_request --no-progress --quiet
4545
- name: Switch to branch 'main'
4646
if: ${{ env.hasBenchmark == '1' }}
4747
run: |
@@ -50,14 +50,14 @@ jobs:
5050
- name: Run benchmarks for branch 'main'
5151
if: ${{ env.hasBenchmark == '1' }}
5252
run: |
53-
swift package --allow-writing-to-directory .benchmarkBaselines/ benchmark update-baseline main
53+
swift package --allow-writing-to-directory .benchmarkBaselines/ benchmark baseline update main --no-progress --quiet
5454
- name: Compare PR and main
5555
if: ${{ env.hasBenchmark == '1' }}
5656
id: benchmark
5757
run: |
5858
echo $(date) >> $GITHUB_STEP_SUMMARY
5959
echo "exitStatus=1" >> $GITHUB_ENV
60-
swift package benchmark compare main pull_request --format markdown >> $GITHUB_STEP_SUMMARY
60+
swift package benchmark baseline check main pull_request --format markdown >> $GITHUB_STEP_SUMMARY
6161
echo "exitStatus=0" >> $GITHUB_ENV
6262
continue-on-error: true
6363
- if: ${{ env.exitStatus == '0' }}

‎.github/workflows/swift-outdated-dependencies.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- name: Check Swift package dependencies
1515
id: spm-dep-check
16-
uses: MarcoEidinger/swift-package-dependencies-check@2.1.0
16+
uses: MarcoEidinger/swift-package-dependencies-check@2.3.4
1717
with:
1818
isMutating: true
1919
failWhenOutdated: false

‎.gitignore‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
## User settings
1010
xcuserdata/
1111

12+
## Benchmark data
13+
.benchmarkBaselines/
14+
15+
## DocC build directories
16+
**/.docc-build/
17+
1218
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
1319
*.xcscmblueprint
1420
*.xccheckout

‎.swift-version‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.7
1+
5.7.1

‎.swiftlint.yml‎

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
####################################################################
22
# DO NOT EDIT THIS FILE
3-
# This is a master file maintained in https://github.com/ordo-one/repository-templates
3+
# This is a master file maintained in https://github.com/ordo-one/public-repository-templates
44
#
55
# Add overrides into `swiftlint_refinement.yml` in the directory it self or
66
# .swiftlint.yml under the specific directory where the code is located
@@ -9,11 +9,13 @@
99
####################################################################
1010

1111
included:
12+
- Benchmarks
1213
- Sources
1314
- Tests
1415
excluded:
16+
analyzer_rules:
17+
- unused_import
1518
opt_in_rules:
16-
- anyobject_protocol
1719
- array_init
1820
- attributes
1921
- closure_end_indentation
@@ -72,7 +74,6 @@ opt_in_rules:
7274
- test_case_accessibility
7375
- toggle_bool
7476
- unavailable_function
75-
- unused_import
7677
- unneeded_parentheses_in_closure_argument
7778
- unowned_variable_capture
7879
- untyped_error_in_catch
@@ -81,3 +82,12 @@ opt_in_rules:
8182
- vertical_whitespace_opening_braces
8283
- xct_specific_matcher
8384
- yoda_condition
85+
line_length:
86+
warning: 140
87+
error: 140
88+
ignores_comments: true
89+
ignores_urls: true
90+
ignores_function_declarations: true
91+
ignores_interpolated_strings: true
92+
identifier_name:
93+
excluded: [id, i, j, k]

0 commit comments

Comments
 (0)