Skip to content

Commit 3d6cdbe

Browse files
committed
[infra] Mimic our TC test jobs in GitHub Actions workflow
1 parent ec602f6 commit 3d6cdbe

File tree

1 file changed

+39
-16
lines changed

1 file changed

+39
-16
lines changed

.github/workflows/build.yml

Lines changed: 39 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,52 @@ on:
77
- jbion/github-build
88

99
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 }}
1216
steps:
1317
- name: Checkout repo
1418
uses: actions/checkout@v5
1519

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
1825
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
2428

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 }}
3047
steps:
3148
- name: Checkout repo
3249
uses: actions/checkout@v5
3350

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

Comments
 (0)