Skip to content

feat: Move WAD server installation into a driver script #165

feat: Move WAD server installation into a driver script

feat: Move WAD server installation into a driver script #165

Workflow file for this run

name: Functional Tests
on:
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
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
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