Skip to content

Commit

Permalink
run e2e tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jperl committed Mar 10, 2020
1 parent 3336b0a commit 4cf5e0a
Showing 1 changed file with 12 additions and 19 deletions.
31 changes: 12 additions & 19 deletions .github/workflows/e2e-windows.yml
@@ -1,41 +1,34 @@
name: e2e windows
on:
push:
branches-ignore:
- '**'
name: E2E Tests Windows

on: [push]

jobs:
test:
runs-on: windows-2019

env:
QAW_ARTIFACT_PATH: ${{ github.workspace }}\artifacts
QAW_LOG_LEVEL: debug
QAW_SLEEP_MS: 0
QAW_TEST_URL: http://localhost:5000/

steps:
- uses: actions/setup-node@v1
with:
node-version: '12'

- uses: actions/checkout@v2
with:
path: project

- name: Build QA Wolf
run: |
cd project
npm run bootstrap
- run: npm install

- uses: eregon/use-ruby-action@master
with:
ruby-version: '2.6.5'
- run: npm run build

- name: Start sandbox
run: |
start-process npm -ArgumentList "run test:server" -WindowStyle hidden
npx wait-on http://localhost:5000
- name: Test e2e
run: |
cd project/packages/e2e-tests
# Windows throws invalid js for linked binaries unless we call node directly
node ./node_modules/qawolf test --all-browsers
node ./node_modules/qawolf test --all-browsers --headless --rootDir=./test/.qawolf
- name: Upload Artifacts
if: always()
Expand Down

0 comments on commit 4cf5e0a

Please sign in to comment.