chore: Update deprecated method name #184
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |