-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (45 loc) · 1.54 KB
/
mobile-tests-Sandbox.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
# This is a basic workflow that is manually triggered
name: Manual workflow on Sandbox
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "greet"
mobile-test-nhs-Sandbox:
runs-on: macOS-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: set up node
uses: actions/setup-node@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
fetch-depth: 1
node-version: '10.16'
java-version: 11
- run: npm install -g appium
- name: run mobile tests on NHS Dev
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
target: playstore
profile: pixel_2
script: mvn clean "-Dtest=/**/mobiletests/tests/*Test" test
env:
Authorization: ${{ secrets.Authorization }}
env: nhsSandbox # required
- name: Notify on Slack
uses: 8398a7/action-slack@v2
with:
status: ${{ job.status }}
author_name: Functional Tests on NHS Sandbox
text: Functional Mobile Tests on NHS Sandbox
channel: '#botcave'
only_mention_fail: USXBM5WPQ,here
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: always()