|
| 1 | +name: "macOS 11" |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + branches: |
| 6 | + - master |
| 7 | + |
| 8 | +env: |
| 9 | + DEVELOPER_DIR: /Applications/Xcode_13.2.1.app/Contents/Developer |
| 10 | + |
| 11 | +jobs: |
| 12 | + spm: |
| 13 | + name: Swift Package Manager 5.5 |
| 14 | + runs-on: macOS-11 |
| 15 | + concurrency: |
| 16 | + group: spm-${{ github.run_id }} |
| 17 | + cancel-in-progress: false |
| 18 | + steps: |
| 19 | + - uses: actions/checkout@v2 |
| 20 | + - name: Resolve dependencies |
| 21 | + run: swift package resolve |
| 22 | + - name: Build |
| 23 | + run: swift build --build-tests |
| 24 | + - name: Install ganache |
| 25 | + run: npm install ganache --global |
| 26 | + - name: Start ganache in background |
| 27 | + run: ganache & |
| 28 | + - name: Wait till ganache starts |
| 29 | + run: sleep 1 |
| 30 | + - name: Run local tests |
| 31 | + run: swift test --skip-build -c debug --filter localTests |
| 32 | + - name: Run remote tests |
| 33 | + run: swift test --skip-build -c debug --filter remoteTests |
| 34 | + |
| 35 | + carthage-iOS: |
| 36 | + name: Carthage |
| 37 | + runs-on: macOS-11 |
| 38 | + concurrency: |
| 39 | + group: carthage-${{ github.run_id }} |
| 40 | + cancel-in-progress: false |
| 41 | + strategy: |
| 42 | + fail-fast: false |
| 43 | + max-parallel: 2 |
| 44 | + matrix: |
| 45 | + destination: ['OS=15.2,name=iPhone 13'] |
| 46 | + steps: |
| 47 | + - uses: actions/checkout@v2 |
| 48 | + - name: Resolving dependencies |
| 49 | + run: carthage checkout |
| 50 | + - name: Building dependencies |
| 51 | + run: carthage build --no-use-binaries --platform iOS Simulator --use-xcframeworks |
| 52 | + - name: Building framework |
| 53 | + run: xcodebuild build-for-testing -project "web3swift.xcodeproj" -scheme "web3swift" -destination "${{matrix.destination}}" |
| 54 | + - name: Install ganache |
| 55 | + run: npm install ganache --global |
| 56 | + - name: Start ganache in background |
| 57 | + run: ganache & |
| 58 | + - name: Wait till ganache starts |
| 59 | + run: sleep 1 |
| 60 | + - name: Run local tests |
| 61 | + run: xcodebuild test-without-building -project "web3swift.xcodeproj" -scheme "web3swift" -destination "${{matrix.destination}}" -testPlan LocalTests |
| 62 | + - name: Run remote tests |
| 63 | + run: xcodebuild test-without-building -project "web3swift.xcodeproj" -scheme "web3swift" -destination "${{matrix.destination}}" -testPlan RemoteTests |
0 commit comments