Skip to content

Commit

Permalink
Try to get qawolf to run in ITs
Browse files Browse the repository at this point in the history
  • Loading branch information
markphelps committed May 24, 2020
1 parent 2698545 commit 827617b
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 86 deletions.
49 changes: 45 additions & 4 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,39 @@ on:
- master

jobs:

## Integration Tests
test:
name: Test
runs-on: ubuntu-latest

timeout-minutes: 20

steps:

- name: Install dependencies
run: |
sudo apt update
# chromium dependencies
sudo apt-get install -y libgbm1
# webkit dependencies
sudo apt-get install -y 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
# ffmpeg
sudo apt-get install -y ffmpeg
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: 1.14.1
id: go

- name: Setup node
uses: actions/setup-node@v1

- name: Checkout
uses: actions/checkout@v2

- name: Restore Cache
uses: actions/cache@v1
id: cache
- uses: actions/cache@v1
id: go-cache
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-${{ hashFiles('**/go.sum') }}
Expand All @@ -46,3 +60,30 @@ jobs:
uses: ./.github/actions/api-test
with:
args: ./script/test/cli

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v1
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}

- run: yarn
working-directory: ./ui

- name: Test qawolf
run: yarn qawolf test --headless
env:
FFMPEG_PATH: /usr/bin/ffmpeg # for recording video
QAW_ARTIFACT_PATH: ${{ github.workspace }}/artifacts
working-directory: ./ui

- name: Upload Artifacts
if: always()
uses: actions/upload-artifact@master
with:
name: qawolf
path: ${{ github.workspace }}/artifacts
82 changes: 0 additions & 82 deletions .github/workflows/qawolf.yml

This file was deleted.

0 comments on commit 827617b

Please sign in to comment.