-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (50 loc) · 1.58 KB
/
mobile-tests-Dev.yml
File metadata and controls
53 lines (50 loc) · 1.58 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
name: Manual workflow on Dev
on:
workflow_dispatch:
push:
# Sequence of patterns matched against refs/heads
branches:
- master
- refactor-mobile-tests
jobs:
mobile-test-nhs-dev:
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: nhsDev # required
- name: Notify on Slack
uses: 8398a7/action-slack@v2
with:
status: ${{ job.status }}
author_name: Functional Tests on NHS Dev
text: Functional Mobile Tests on NHS Dev
channel: '#botcave'
only_mention_fail: USXBM5WPQ,here
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: always()
#curl -H "Accept: application/vnd.github.everest-preview+json" \
# -H "Authorization: token <TOKEN>" \
# --request POST \
# --data '{"event_type": "run-tests"}' \
# https://api.github.com/repos/ProjectEKA/ProjectEKATests/dispatches