Skip to content

Commit

Permalink
ci: Use the shared soundness workflow from swiftlang/github-workflows (
Browse files Browse the repository at this point in the history
…#20)

### Motivation

`swiftlang/github-workflows` is the final home for the shared soundness workflows which started in `apple/swift-nio`.

### Modifications

Use the soundness workflow from `swiftlang/github-workflows`.
Fix complaints from the new YAML linter step.

### Result

We will pull the shared workflow from the correct final location, so we will continue to receive updates.

### Test Plan

CI continues to pass.
  • Loading branch information
euanh authored Oct 10, 2024
1 parent 7ccb30b commit fc50ff7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
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

0 comments on commit fc50ff7

Please sign in to comment.