Skip to content

Commit

Permalink
setup linux e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jperl committed Mar 10, 2020
1 parent ac604fc commit 5f2c368
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 26 deletions.
69 changes: 43 additions & 26 deletions .github/workflows/e2e-linux.yml
@@ -1,45 +1,62 @@
name: e2e linux
on:
push:
branches-ignore:
- '**'
name: E2E Tests Linux

on: [push]

jobs:
test:
runs-on: ubuntu-18.04
build:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: [12.x]
fail-fast: false
test: [chromium, firefox, webkit]

env:
QAW_ARTIFACT_PATH: ${{ github.workspace }}/artifacts
QAW_LOG_LEVEL: debug
QAW_SLEEP_MS: 0

steps:
- uses: actions/checkout@v2

- name: Setup node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install chromium dependencies
if: matrix.test == 'chromium'
run: sudo apt-get install libgbm1

- name: Install browser dependencies
- name: Install webkit dependencies
if: matrix.test == 'webkit'
run: |
sudo apt update
# chromium
sudo apt-get install libgbm1
# webkit
sudo apt-get install libwoff1 libopus0 libwebp6 libwebpdemux2 libenchant1c2a libgudev-1.0-0 libsecret-1-0 libhyphen0 libgdk-pixbuf2.0-0 libegl1 libgles2 libevent-2.1-6 libnotify4 libvpx5 libxslt1.1
- run: npm run test:e2e
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install

- run: npm run build

# - name: Upload Artifacts
# if: always()
# uses: actions/upload-artifact@master
# with:
# name: artifacts
# path: ${{ github.workspace }}/artifacts
- run: npm run test:server &
if: matrix.test != 'lint'

- run: npm link && npm link qawolf

- run: QAW_BROWSER=${{ matrix.test }} npx qawolf test --headless --rootDir=./test/.qawolf
env:
CI: true

- name: Upload Artifacts
if: always()
uses: actions/upload-artifact@master
with:
name: artifacts
path: ${{ github.workspace }}/artifacts

timeout-minutes: 20
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 5f2c368

Please sign in to comment.