From f492809e5baa319c34b18af458564f8b6b5ddf73 Mon Sep 17 00:00:00 2001 From: Georgios Chatoutsidis Date: Fri, 17 Apr 2026 04:59:34 +0300 Subject: [PATCH 1/2] #10 Add Swift CI workflow and update README with CI details --- .github/workflows/swift-ci.yml | 36 ++++++++++++++++++++++++++++++++++ README.md | 6 ++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/swift-ci.yml diff --git a/.github/workflows/swift-ci.yml b/.github/workflows/swift-ci.yml new file mode 100644 index 0000000..bb26c29 --- /dev/null +++ b/.github/workflows/swift-ci.yml @@ -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@v2 + 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 diff --git a/README.md b/README.md index 5115b73..343beff 100644 --- a/README.md +++ b/README.md @@ -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) From a1097565c650866a85e63650bcbd551dbc7ad287 Mon Sep 17 00:00:00 2001 From: Georgios Chatoutsidis Date: Fri, 17 Apr 2026 05:17:33 +0300 Subject: [PATCH 2/2] #10 Update Swift setup action to version 3 in CI workflow --- .github/workflows/swift-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/swift-ci.yml b/.github/workflows/swift-ci.yml index bb26c29..dad63b2 100644 --- a/.github/workflows/swift-ci.yml +++ b/.github/workflows/swift-ci.yml @@ -22,7 +22,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Swift 6.3 - uses: swift-actions/setup-swift@v2 + uses: swift-actions/setup-swift@v3 with: swift-version: '6.3'