Skip to content
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
36 changes: 36 additions & 0 deletions .github/workflows/swift-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Swift CI

on:
pull_request:
push:
branches:
- main
workflow_dispatch:

concurrency:
group: swift-ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-and-test:
name: Build and Test
runs-on: macos-15
timeout-minutes: 20

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Swift 6.3
uses: swift-actions/setup-swift@v3
with:
swift-version: '6.3'

- name: Show Swift version
run: swift --version

- name: Build package
run: swift build

- name: Run test suite
run: swift test
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,12 @@ swift build
swift test
```

Continuous integration:

- GitHub Actions runs the Swift CI workflow on pull requests, pushes to `main`, and manual dispatches.
- The workflow currently uses a macOS runner, installs Swift 6.3, and runs `swift build` plus `swift test`.
- If CI fails, reproduce the same checks locally from the repository root before opening or updating a pull request.

## Documentation

- Software requirements specification: [docs/SRS.md](docs/SRS.md)
Expand Down
Loading