Skip to content

Commit 5626800

Browse files
Update from hummingbird-project-template 034c643663fa08ba3bab4fac3ab461ffbb039e1d (#39)
1 parent 9b1d88d commit 5626800

File tree

11 files changed

+74
-13
lines changed

11 files changed

+74
-13
lines changed

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @adam-fowler @Joannis

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ updates:
1212
directory: "/"
1313
schedule:
1414
interval: "daily"
15-
open-pull-requests-limit: 6
15+
open-pull-requests-limit: 5
1616
allow:
1717
- dependency-type: all
1818
groups:

.github/workflows/api-breakage.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
# This will be interesting to see how often AWS break there own APIs
21
name: API breaking changes
32

43
on:
54
pull_request:
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}-apibreakage
7+
cancel-in-progress: true
68

79
jobs:
810
linux:
911
runs-on: ubuntu-latest
1012
timeout-minutes: 15
1113
container:
12-
image: swift:5.9
14+
image: swift:latest
1315
steps:
1416
- name: Checkout
1517
uses: actions/checkout@v4

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,17 @@ on:
99
- '**.yml'
1010
pull_request:
1111
workflow_dispatch:
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}-ci
14+
cancel-in-progress: true
1215

1316
jobs:
1417
linux:
1518
runs-on: ubuntu-latest
1619
timeout-minutes: 15
1720
strategy:
1821
matrix:
19-
image: ["swift:5.9", "swift:5.10", "swiftlang/swift:nightly-jammy"]
20-
22+
image: ["swift:5.9", "swift:5.10", "swift:6.0"]
2123
container:
2224
image: ${{ matrix.image }}
2325
steps:
@@ -34,6 +36,6 @@ jobs:
3436
-ignore-filename-regex="\/Benchmarks\/" \
3537
-instr-profile .build/debug/codecov/default.profdata > info.lcov
3638
- name: Upload to codecov.io
37-
uses: codecov/codecov-action@v4
39+
uses: codecov/codecov-action@v5
3840
with:
39-
file: info.lcov
41+
files: info.lcov

.github/workflows/nightly.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ jobs:
1010
strategy:
1111
matrix:
1212
image: ['nightly-focal', 'nightly-jammy', 'nightly-amazonlinux2']
13-
1413
container:
1514
image: swiftlang/swift:${{ matrix.image }}
1615
steps:

.github/workflows/validate.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Validity Check
22

33
on:
44
pull_request:
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}-validate
7+
cancel-in-progress: true
58

69
jobs:
710
validate:
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Verify Documentation
2+
3+
on:
4+
pull_request:
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}-verifydocs
7+
cancel-in-progress: true
8+
9+
jobs:
10+
linux:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 15
13+
container:
14+
image: swift:latest
15+
steps:
16+
- name: Install rsync 📚
17+
run: |
18+
apt-get update && apt-get install -y rsync bc
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
path: "package"
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
with:
27+
repository: "hummingbird-project/hummingbird-docs"
28+
fetch-depth: 0
29+
path: "documentation"
30+
- name: Verify
31+
run: |
32+
cd documentation
33+
swift package edit ${GITHUB_REPOSITORY#*/} --path ../package
34+
./scripts/build-docc.sh -e
35+

CONTRIBUTING.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@ Please ensure to include the following in your Pull Request
2222
- Documentation on how these changes are being tested
2323
- Additional tests to show your code working and to ensure future changes don't break your code.
2424

25-
Remember the requirements for Hummingbird and HummingbirdCore (No Foundation and no new dependencies). If you are submitting a large change to a module (or bringing in a new dependency) please consider making these changes in a separate repository. The idea is that Hummingbird/HummingbirdCore are kept as slimline as possible. These concerns can be discussed in a Github Issue.
26-
2725
Please keep your PRs to a minimal number of changes. If a PR is large try to split it up into smaller PRs. Don't move code around unnecessarily it makes comparing old with new very hard.
2826

2927
The main development branch of the repository is `main`.
3028

3129
### Formatting
3230

33-
We use Nick Lockwood's SwiftFormat for formatting code. PRs will not be accepted if they haven't be formatted. The current version of SwiftFormat we are using is v0.51.15.
31+
We use Nick Lockwood's SwiftFormat for formatting code. PRs will not be accepted if they haven't be formatted. The current version of SwiftFormat we are using is v0.53.10.

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ================================
22
# Build image
33
# ================================
4-
FROM swift:5.9 as build
4+
FROM swift:6.0 as build
55

66
WORKDIR /build
77

@@ -15,4 +15,4 @@ RUN swift package resolve
1515
# Copy entire repo into container
1616
COPY . .
1717

18-
RUN swift test --enable-test-discovery --sanitize=thread
18+
RUN swift test --sanitize=thread

0 commit comments

Comments
 (0)