Skip to content

Commit

Permalink
Update from hummingbird-project-template 9627528185498f87d487c1ed232b…
Browse files Browse the repository at this point in the history
…2d9b28d7b5a6
  • Loading branch information
adam-fowler authored Nov 15, 2024
1 parent 73644db commit 2e35ac2
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 7 deletions.
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
10 changes: 5 additions & 5 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 Down
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

0 comments on commit 2e35ac2

Please sign in to comment.