diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 9c11ccb..bd126f6 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -9,19 +9,30 @@ on: pull_request: branches: [ "master" ] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: + strategy: + matrix: + platform: + - iOS + xcode: + - ^15 runs-on: macos-latest steps: - - uses: swift-actions/setup-swift@v1 - with: - swift-version: "5.8.0" + - name: Checkout + uses: actions/checkout@v3 - name: Get swift version - run: swift --version # Swift 5.8.0 - - uses: actions/checkout@v4 - - name: Build - run: swift build -v - - name: Run tests - run: swift test -v + uses: swift-actions/setup-swift@v1 + - name: Print Swift version + run: swift --version + - name: Build & Test + uses: mxcl/xcodebuild@v1 + with: + xcode: ${{ matrix.xcode }} + platform: ${{ matrix.platform }}