-
Notifications
You must be signed in to change notification settings - Fork 52
79 lines (70 loc) · 2.84 KB
/
build.yml
File metadata and controls
79 lines (70 loc) · 2.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: build
on:
workflow_dispatch: {}
push:
branches:
- jbion/github-build
jobs:
test-standard:
strategy:
fail-fast: false # So that all jobs run to completion even when one fails
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
name: Standard tests (${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repo
uses: actions/checkout@v5
- name: Create local.properties with empty credentials
shell: bash
run: |
echo "space.username=" >> local.properties
echo "space.password=" >> local.properties
- name: Run regular tests
run: ./amper test --exclude-module=amper-mobile-test
- name: Report test results
uses: dorny/test-reporter@v2
if: ${{ !cancelled() }} # run this step even if previous step failed
with:
name: JUnit results # Name of the check run which will be created
path: build/reports/**/TEST-*.xml # Path to test results
reporter: java-junit # Format of test results
list-suites: failed
list-tests: failed
test-mobile:
strategy:
fail-fast: false # So that all jobs run to completion even when one fails
matrix:
include:
- description: Android examples
testArgs: "--include-classes=RunAndroidExamplesOnEmulatorsTestsStandalone"
os: ubuntu-latest
- description: iOS examples
testArgs: "--include-classes=RuniOSExamplesOnEmulatorsTestsStandalone"
os: macos-latest
# FIXME external projects require git credentials - maybe they should just be in our examples...
# - description: Android external projects
# testArgs: "--include-classes=RunAndroidExternalProjectsStandalone"
# os: ubuntu-latest
# - description: iOS external projects
# testArgs: "--include-classes=RuniOSExternalProjectsStandalone"
# os: macos-latest
name: Mobile tests (${{ matrix.description }})
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repo
uses: actions/checkout@v5
- name: Create local.properties with empty credentials
shell: bash
run: |
echo "space.username=" >> local.properties
echo "space.password=" >> local.properties
- name: Run mobile tests
run: ./amper test -m amper-mobile-test ${{ matrix.testArgs }}
- name: Report test results
uses: dorny/test-reporter@v2
if: ${{ !cancelled() }} # run this step even if previous step failed
with:
name: JUnit results # Name of the check run which will be created
path: build/reports/**/TEST-*.xml # Path to test results
reporter: java-junit # Format of test results