From 56939bd2c8b347e5f6e2372a44f82dcc0b16cb7c Mon Sep 17 00:00:00 2001 From: Martin Cardozo Date: Thu, 23 Oct 2025 20:10:32 -0300 Subject: [PATCH 1/3] Automated Tests Yaml --- .github/workflows/swift.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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 0000000..dd43de7 --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,26 @@ +# 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: CI + +on: + push: + branches: [ main, develop ] + pull_request: + branches: [ main, develop ] + +jobs: + test: + runs-on: macos-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Set up Xcode + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: '16.4' + + - name: Run tests + run: swift test --parallel --enable-test-discovery From 7df5e80fe2be11d71bd4bab6fd70a081131c0a74 Mon Sep 17 00:00:00 2001 From: Martin Cardozo Date: Thu, 23 Oct 2025 20:14:56 -0300 Subject: [PATCH 2/3] Update swift.yml --- .github/workflows/swift.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index dd43de7..5aac0a6 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -23,4 +23,4 @@ jobs: xcode-version: '16.4' - name: Run tests - run: swift test --parallel --enable-test-discovery + run: swift test -v --parallel --enable-test-discovery From c3adf8489cba3bac99b7089e89a4897d461b7f4a Mon Sep 17 00:00:00 2001 From: Martin Cardozo Date: Fri, 24 Oct 2025 10:26:53 -0300 Subject: [PATCH 3/3] Update swift.yml --- .github/workflows/swift.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 5aac0a6..0585b95 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -1,7 +1,4 @@ -# 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: CI +name: Build and Test on: push: @@ -9,6 +6,10 @@ on: pull_request: branches: [ main, develop ] +concurrency: + group: ${{ github.workflow }}-${{ github.run_id }} + cancel-in-progress: true + jobs: test: runs-on: macos-latest @@ -23,4 +24,4 @@ jobs: xcode-version: '16.4' - name: Run tests - run: swift test -v --parallel --enable-test-discovery + run: swift test -v --parallel