diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml new file mode 100644 index 000000000..00294d77a --- /dev/null +++ b/.github/workflows/unit-tests.yml @@ -0,0 +1,29 @@ +name: Run Unit Tests + +on: + pull_request: + +jobs: + spm-test: + runs-on: macos-latest + strategy: + fail-fast: false + matrix: + platform: + - iOS + - macOS + - watchOS + - tvOS + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Use Latest Stable Xcode + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest-stable + + - name: Run Unit Tests + uses: mxcl/xcodebuild@v1 + with: + platform: ${{ matrix.platform }}