From 379f6b4a87ea7ef2153e081fba5e69a49cfe00e2 Mon Sep 17 00:00:00 2001 From: metalurgical <97008724+metalurgical@users.noreply.github.com> Date: Thu, 21 Sep 2023 09:25:34 +0200 Subject: [PATCH] feat: simplify CI workflow --- .github/workflows/ci.yaml | 25 ++++++++++++++----------- .gitignore | 1 + 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6e8ae8c..e2824b3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,6 +2,7 @@ on: push: branches: - main + - alpha pull_request: types: - opened @@ -9,16 +10,18 @@ on: - synchronize jobs: - test: - runs-on: macos-latest + build: + runs-on: macOS-latest + strategy: + matrix: + platform: + - iOS steps: - - name: checkout - uses: actions/checkout@v3 - - name: xcode - uses: maxim-lobanov/setup-xcode@v1 + - uses: actions/checkout@v2.3.4 + - uses: mxcl/xcodebuild@v1 with: - xcode-version: "14.2.0" - - name: package - run: xcodebuild test -scheme Web3SwiftMpcProvider -destination "platform=iOS Simulator,OS=16.2,name=iPhone 14" COMPILER_INDEX_STORE_ENABLE=NO - - name: SwiftLint - run: swiftlint lint ./Sources --reporter github-actions-logging \ No newline at end of file + platform: ${{ matrix.platform }} + action: test + scheme: Web3SwiftMpcProvider + code-coverage: true + upload-logs: always diff --git a/.gitignore b/.gitignore index c1de6b6..33db791 100644 --- a/.gitignore +++ b/.gitignore @@ -95,3 +95,4 @@ fastlane/test_output iOSInjectionProject/ .idea .DS_Store +.DS_Store