From b255c0d76da82ba2c690b2dd07b73bc145cdb909 Mon Sep 17 00:00:00 2001 From: "ESLAM F." <224002975+monamie990-oss@users.noreply.github.com> Date: Fri, 7 Nov 2025 16:34:40 +0300 Subject: [PATCH] Add GitHub Actions workflow for Swift project This workflow builds and tests a Swift project on push and pull request events. --- .github/workflows/swift.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 00000000..21ae770f --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,22 @@ +# This workflow will build a Swift project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift + +name: Swift + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v4 + - name: Build + run: swift build -v + - name: Run tests + run: swift test -v