-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (49 loc) · 1.85 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build and Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-and-test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set default Xamarin SDK versions
run: |
$VM_ASSETS/select-xamarin-sdk-v2.sh --mono=6.12.0 --android=12.0
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
- name: Restore dependencies
run: nuget restore CaffeineCrashCue.sln
- name: Build Base
run: msbuild /p:Configuration=ExcludePlatforms
- name: Build Android
run: msbuild ./CaffeineCrashCue/CaffeineCrashCue.Android/CaffeineCrashCue.Android.csproj /t:PackageForAndroid /p:Configuration=Release
- name: Upload App
run: ./upload_app.sh
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
- name: Unit Test
run: dotnet test -c ExcludePlatforms --no-build --verbosity normal
- name: Build E2E Tests
run: dotnet build ./e2e/CaffeineCrashCueE2E/CaffeineCrashCueE2E.sln
- name: Run Android 10 Smoke Tests
env:
IS_SAUCE: true
DEVICE_NAME: "Google Pixel 3a XL GoogleAPI Emulator"
PLATFORM_VERSION: "10.0"
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
run: dotnet test ./e2e/CaffeineCrashCueE2E/CaffeineCrashCue.E2E/CaffeineCrashCue.E2E.csproj -c Release
- name: Run Android 12 Smoke Tests
env:
IS_SAUCE: true
DEVICE_NAME: "Google Pixel 6 GoogleAPI Emulator"
PLATFORM_VERSION: "12.0"
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
run: dotnet test ./e2e/CaffeineCrashCueE2E/CaffeineCrashCue.E2E/CaffeineCrashCue.E2E.csproj -c Release