Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
43 additions
and
26 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.