From 26f9ed51255f96a597ed0c3b02b06ee7ea75eed9 Mon Sep 17 00:00:00 2001 From: Ayman Hamed Date: Mon, 27 Jul 2026 12:24:01 +0300 Subject: [PATCH] ci: add GitHub Actions build & test workflow Runs swift build + swift test on macOS (latest stable Xcode) for every push to main and every PR. Roadmap P1.1 (CI on every repo). Co-Authored-By: Claude Opus 4.8 --- .github/workflows/ci.yml | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7016fda..a974ac6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,38 +2,25 @@ name: CI on: push: - branches: [main] + branches: [ main ] pull_request: - branches: [main] concurrency: group: ci-${{ github.ref }} cancel-in-progress: true jobs: - build-test: + test: name: Build & Test (macOS) - runs-on: macos-15 + runs-on: macos-latest steps: - uses: actions/checkout@v4 - - - name: Select Xcode - uses: maxim-lobanov/setup-xcode@v1 + - uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: latest-stable - - - name: Show toolchain + - name: Swift version run: swift --version - - - name: Cache SwiftPM - uses: actions/cache@v4 - with: - path: .build - key: ${{ runner.os }}-spm-${{ hashFiles('Package.swift', 'Package.resolved') }} - restore-keys: ${{ runner.os }}-spm- - - name: Build - run: swift build -v - + run: swift build - name: Test - run: swift test -v \ No newline at end of file + run: swift test