|
7 | 7 | - jbion/github-build |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - test-linux: |
11 | | - runs-on: ubuntu-latest |
| 10 | + test-standard: |
| 11 | + strategy: |
| 12 | + matrix: |
| 13 | + os: [ ubuntu-latest, macos-latest, windows-latest ] |
| 14 | + name: Standard tests (${{ matrix.os }}) |
| 15 | + runs-on: ${{ matrix.os }} |
12 | 16 | steps: |
13 | 17 | - name: Checkout repo |
14 | 18 | uses: actions/checkout@v5 |
15 | 19 |
|
16 | | - - name: Run tests |
17 | | - run: ./amper test |
| 20 | + - name: Create local.properties with empty credentials |
| 21 | + shell: bash |
| 22 | + run: | |
| 23 | + echo "space.username=" >> local.properties |
| 24 | + echo "space.password=" >> local.properties |
18 | 25 |
|
19 | | - test-macos: |
20 | | - runs-on: macos-latest |
21 | | - steps: |
22 | | - - name: Checkout repo |
23 | | - uses: actions/checkout@v5 |
| 26 | + - name: Run regular tests |
| 27 | + run: ./amper test --exclude-module=amper-mobile-test |
24 | 28 |
|
25 | | - - name: Run tests |
26 | | - run: ./amper test |
27 | | - |
28 | | - test-windows: |
29 | | - runs-on: windows-latest |
| 29 | + test-mobile: |
| 30 | + strategy: |
| 31 | + matrix: |
| 32 | + include: |
| 33 | + - description: Android examples |
| 34 | + testArgs: "--include-classes=RunAndroidExamplesOnEmulatorsTestsStandalone" |
| 35 | + os: ubuntu-latest |
| 36 | + - description: Android external projects |
| 37 | + testArgs: "--include-classes=RunAndroidExternalProjectsStandalone" |
| 38 | + os: ubuntu-latest |
| 39 | + - description: iOS examples |
| 40 | + testArgs: "--include-classes=RuniOSExamplesOnEmulatorsTestsStandalone" |
| 41 | + os: macos-latest |
| 42 | + - description: iOS external projects |
| 43 | + testArgs: "--include-classes=RuniOSExternalProjectsStandalone" |
| 44 | + os: macos-latest |
| 45 | + name: Mobile tests (${{ matrix.description }}) |
| 46 | + runs-on: ${{ matrix.os }} |
30 | 47 | steps: |
31 | 48 | - name: Checkout repo |
32 | 49 | uses: actions/checkout@v5 |
33 | 50 |
|
34 | | - - name: Run tests |
35 | | - run: ./amper test |
| 51 | + - name: Create local.properties with empty credentials |
| 52 | + shell: bash |
| 53 | + run: | |
| 54 | + echo "space.username=" >> local.properties |
| 55 | + echo "space.password=" >> local.properties |
| 56 | +
|
| 57 | + - name: Run mobile tests |
| 58 | + run: ./amper test -m amper-mobile-test ${{ matrix.testArgs }} |
0 commit comments