diff --git a/.github/workflows/e2e-windows.yml b/.github/workflows/e2e-windows.yml index 57e6d9819..d2cda9153 100644 --- a/.github/workflows/e2e-windows.yml +++ b/.github/workflows/e2e-windows.yml @@ -1,17 +1,13 @@ -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 @@ -19,23 +15,20 @@ jobs: 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()