forked from stoneman/appium-windows-driver
-
-
Notifications
You must be signed in to change notification settings - Fork 35
44 lines (41 loc) · 1.02 KB
/
functional-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
name: Functional Tests
on: [pull_request]
jobs:
test:
env:
CI: true
APPIUM_TEST_SERVER_PORT: 4788
APPIUM_TEST_SERVER_HOST: 127.0.0.1
_FORCE_LOGS: 1
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
check-latest: true
- run: |
npm install -g appium@next
npm install
name: Install dev dependencies
- run: |
cwd=$(pwd)
pushd "$cwd"
cd ~
appium driver install --source=local "$cwd"
nohup appium server \
--port=$APPIUM_TEST_SERVER_PORT \
--address=$APPIUM_TEST_SERVER_HOST \
--relaxed-security \
2>&1 > "$cwd/appium.log" &
popd
shell: bash
name: Start Appium server
- run: npm run e2e-test
name: Run e2e tests
- name: Save server output
if: ${{ always() }}
uses: actions/upload-artifact@master
with:
name: appium.log
path: appium.log