diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2022-11-02 13:28:35 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2022-11-02 16:10:23 +0100 |
| commit | 81afac6ea90d0ac6de62cc4de1284bbec3953636 (patch) | |
| tree | 677ff7ed1555f6b453a7e9fceff08bc58b372398 /.github/workflows | |
| parent | 0ba71e2c256a9796f940963137980b32d53e5263 (diff) | |
| download | mullvadvpn-81afac6ea90d0ac6de62cc4de1284bbec3953636.tar.xz mullvadvpn-81afac6ea90d0ac6de62cc4de1284bbec3953636.zip | |
Run all tests but ignore screenshots UI tests bundle
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ios.yml | 32 |
1 files changed, 6 insertions, 26 deletions
diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index 06cc711545..686667a23b 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -28,11 +28,8 @@ jobs: test: name: Unit tests runs-on: macos-11 - strategy: - matrix: - destination: ['platform=iOS Simulator,OS=13.7,name=iPhone 8'] env: - source_packages_dir: .spm + SOURCE_PACKAGES_PATH: .spm steps: - name: Checkout repository uses: actions/checkout@v3 @@ -40,7 +37,7 @@ jobs: - name: Configure cache uses: actions/cache@v3 with: - path: ios/${{ env.source_packages_dir }} + path: ios/${{ env.SOURCE_PACKAGES_PATH }} key: ${{ runner.os }}-spm-${{ hashFiles('ios/**/Package.resolved') }} restore-keys: | ${{ runner.os }}-spm- @@ -78,32 +75,15 @@ jobs: mv Package.resolved.out Package.resolved working-directory: ios/MullvadVPN.xcodeproj/project.xcworkspace/xcshareddata/swiftpm - - name: Run MullvadVPNTests + - name: Run tests run: | xcodebuild test \ -project MullvadVPN.xcodeproj \ - -scheme MullvadVPNTests \ - -destination "${destination}" \ + -scheme MullvadVPN \ + -skip-testing:MullvadVPNScreenshots \ + -destination "platform=iOS Simulator,OS=13.7,name=iPhone 8" \ -clonedSourcePackagesDirPath "${SOURCE_PACKAGES_PATH}" \ CODE_SIGN_IDENTITY="" \ CODE_SIGNING_REQUIRED=NO \ ONLY_ACTIVE_ARCH=YES working-directory: ios - env: - destination: ${{ matrix.destination }} - SOURCE_PACKAGES_PATH: ${{ env.source_packages_dir }} - - - name: Run OperationsTests - run: | - xcodebuild test \ - -project MullvadVPN.xcodeproj \ - -scheme OperationsTests \ - -destination "${destination}" \ - -clonedSourcePackagesDirPath "${SOURCE_PACKAGES_PATH}" \ - CODE_SIGN_IDENTITY="" \ - CODE_SIGNING_REQUIRED=NO \ - ONLY_ACTIVE_ARCH=YES - working-directory: ios - env: - destination: ${{ matrix.destination }} - SOURCE_PACKAGES_PATH: ${{ env.source_packages_dir }} |
