generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (57 loc) · 1.44 KB
/
test.yml
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
name: 'build-test'
on:
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- run: npm install
- run: npm run all
android-test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '11'
- uses: ./
- uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
arch: x86_64
ram-size: 2048M
target: default
script: maestro test --format=junit --output=report.xml --no-ansi .maestro/android-contacts.yaml
- uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Maestro tests
path: report.xml
reporter: java-junit
ios-test:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- uses: futureware-tech/simulator-action@v2
with:
model: 'iPhone 14 Pro'
- uses: ./
id: maestro
with:
flow: .maestro/ios-settings.yaml
report: report.xml
- uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Maestro tests
path: ${{ steps.maestro.outputs.report }}
reporter: java-junit