Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update from Hummingbird Project Template #4

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,26 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-ci
cancel-in-progress: true

env:
FUZZING_SERVER: autobahn
jobs:
linux:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
image: ["swift:5.10", "swift:6.0"]


container:
image: ${{ matrix.image }}
services:
autobahn:
image: crossbario/autobahn-testsuite
options: --name fuzzingserver
ports:
ports:
- 9001:9001
volumes:
- ${{ github.workspace }}/scripts/autobahn-config:/config

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -42,9 +43,8 @@ jobs:
uses: docker://docker
with:
args: docker restart fuzzingserver

- name: Test
env:
FUZZING_SERVER: autobahn
run: |
swift test --enable-code-coverage
- name: Convert coverage files
Expand All @@ -57,4 +57,4 @@ jobs:
- name: Upload to codecov.io
uses: codecov/codecov-action@v5
with:
file: info.lcov
files: info.lcov
21 changes: 19 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,37 @@ name: Swift nightly build
on:
workflow_dispatch:

env:
FUZZING_SERVER: autobahn
jobs:
linux:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
image: ['nightly-focal', 'nightly-jammy', 'nightly-amazonlinux2']


container:
image: swiftlang/swift:${{ matrix.image }}
services:
autobahn:
image: crossbario/autobahn-testsuite
options: --name fuzzingserver
ports:
- 9001:9001
volumes:
- ${{ github.workspace }}/scripts/autobahn-config:/config

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Restart Autobahn
# The autobahn service container is started *before* swift-websocket is checked
# out. Restarting the container after the checkout step is needed for the
# container to see volumes populated from the checked out workspace.
uses: docker://docker
with:
args: docker restart fuzzingserver

- name: Test
run: |
swift test