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

ci: Use the shared soundness workflow from swiftlang/github-workflows #20

Merged
merged 2 commits into from
Oct 10, 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
32 changes: 16 additions & 16 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: PR

on:
pull_request:
types: [opened, reopened, synchronize]
types: [opened, reopened, synchronize]

jobs:
soundness:
name: Soundness
uses: apple/swift-nio/.github/workflows/soundness.yml@main
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
with:
api_breakage_check_container_image: "swift:6.0-noble"
docs_check_container_image: "swift:6.0-noble"
Expand All @@ -31,25 +31,25 @@ jobs:
registry:
image: registry:2
ports:
- 5000:5000
- 5000:5000
container:
image: swift:6.0-noble
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Mark the workspace as safe
# https://github.com/actions/checkout/issues/766
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
- name: Mark the workspace as safe
# https://github.com/actions/checkout/issues/766
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}

- name: Run test job
env:
REGISTRY_HOST: registry
REGISTRY_PORT: 5000
run: |
swift test
- name: Run test job
env:
REGISTRY_HOST: registry
REGISTRY_PORT: 5000
run: |
swift test

swift-6-language-mode:
name: Swift 6 Language Mode
Expand Down
6 changes: 3 additions & 3 deletions .spi.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 1
builder:
configs:
- documentation_targets:
- containertool
- ContainerImageBuilderPlugin
- documentation_targets:
- containertool
- ContainerImageBuilderPlugin