diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 2cc497f..071ad1f 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -1,9 +1,10 @@ name: Swift on: + push: + branches: [ "master" ] pull_request: - branches: [ master ] - types: [ assigned, opened, synchronize, reopened ] + branches: [ "master" ] jobs: build: @@ -11,12 +12,8 @@ jobs: runs-on: macos-latest steps: - - uses: actions/checkout@v3 - - name: Generate project - run: swift package generate-xcodeproj + - uses: actions/checkout@v4 - name: Build - run: xcodebuild clean build -project "HealthKitReporter.xcodeproj" -scheme "HealthKitReporter-Package" -destination "platform=iOS Simulator,name=iPhone 12 Pro,OS=latest" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO + run: swift build -v - name: Run tests - run: xcodebuild clean test -project "HealthKitReporter.xcodeproj" -scheme "HealthKitReporter-Package" -destination "platform=iOS Simulator,name=iPhone 12 Pro,OS=latest" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO - - + run: swift test -v