-
Notifications
You must be signed in to change notification settings - Fork 9
33 lines (31 loc) · 1020 Bytes
/
ci.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
name: Build & test
on:
pull_request:
types: [ opened, reopened, synchronize ]
branches:
- master
push:
branches:
- master
jobs:
test:
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build and test (Android, Jvm, Js)
run: region=${{ secrets.region }} clientId=${{ secrets.clientid }} ./gradlew build test jsTest
- name: Build testapp and test request (iOS)
run: |
cd iostests
xcodebuild clean test -project TestApp.xcodeproj -scheme TestApp -destination "platform=iOS Simulator,OS=16.2,name=iPhone 12" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO region=${{ secrets.region }} clientId=${{ secrets.clientid }}
- name: Upload test result
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: reports
path: build/reports/