|
1 | 1 | ### Integrations workflow ### |
2 | 2 | # |
3 | | -# Runs Danger checks, Swiftlint and tests. |
4 | | -# |
5 | | -# github.token - is automatically assigned to your workflow by Github |
| 3 | +# Runs Danger checks and tests. |
6 | 4 | # |
7 | | -# Note: To enable Fastlane tests, make sure that `CommonFastfile` is imported in Fastfile from the shared ios-fastlane repository. |
| 5 | +# github.token - is automatically assigned to your workflow by Github |
8 | 6 | # |
9 | 7 |
|
10 | 8 | name: Integrations |
|
18 | 16 | jobs: |
19 | 17 | integrations: |
20 | 18 | # runs-on: macos-latest # use this for repos outside of the STRV Github org |
21 | | - runs-on: [self-hosted, macOS, ios-integrations] |
| 19 | + runs-on: [self-hosted, macOS, mobile-ci] |
22 | 20 | timeout-minutes: 10 |
23 | 21 | steps: |
24 | 22 |
|
25 | | - # cancel in-progress integrations - not yet supported by Github Actions out of the box |
| 23 | + # cancel in-progress integrations - not yet supported by Github Actions out of the box |
26 | 24 | - name: Cancel previous runs |
27 | 25 | uses: styfle/cancel-workflow-action@0.4.1 |
28 | 26 | with: |
29 | 27 | access_token: ${{ github.token }} |
30 | 28 |
|
31 | | - # checkout the project repository |
| 29 | + # checkout the project repository |
32 | 30 | - name: Checkout |
33 | 31 | uses: actions/checkout@v1 |
34 | 32 |
|
35 | | - # install dependencies from Gemfile & CocoaPods |
36 | | - - name: Dependencies |
37 | | - run: | |
38 | | - bundle install |
| 33 | + # Install Ruby and Danger via Mise |
| 34 | + - name: Install Mise |
| 35 | + uses: jdx/mise-action@v2 |
| 36 | + with: |
| 37 | + install: true |
| 38 | + cache: false |
| 39 | + experimental: true |
39 | 40 |
|
40 | 41 | # run Danger |
41 | 42 | - name: Run Danger |
42 | | - run: bundle exec danger --fail-on-errors=true |
| 43 | + run: danger --fail-on-errors=true |
43 | 44 | env: |
44 | 45 | GITHUB_TOKEN: ${{ github.token }} |
45 | 46 |
|
46 | 47 | # run tests |
47 | 48 | - name: Run tests |
48 | | - run: bundle exec fastlane tests |
49 | | - env: |
50 | | - DEVICES: "iPhone 13,iPad Air,Apple TV,My Mac,Apple Watch Series 6" |
| 49 | + run: swift test --enable-code-coverage |
0 commit comments