Skip to content

Commit

Permalink
added retries and split github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Oct 15, 2021
1 parent d835a4c commit c3be08f
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 7 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/pr-e2e.yml
@@ -0,0 +1,46 @@
name: PR - e2e testing

on:
push:
branches:
- master
pull_request:

jobs:
test:
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
node-version: [14.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: restore lerna
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- run: yarn --frozen-lockfile
- uses: browser-actions/setup-chrome@latest
- name: Build apps (with retries)
uses: nick-invision/retry@v2
with:
timeout_minutes: 15
max_attempts: 3
command: yarn build:ci
- name: Update webdriver (with retries)
uses: nick-invision/retry@v2
with:
timeout_minutes: 15
max_attempts: 3
command: yarn lerna run --scope altair-app webdriver-update-ci
- name: Run headless e2e test
uses: GabrielBB/xvfb-action@v1
with:
run: yarn lerna run --scope altair-app e2e:ci
10 changes: 3 additions & 7 deletions .github/workflows/pr.yml
@@ -1,4 +1,4 @@
name: PR
name: PR - testing

on:
push:
Expand Down Expand Up @@ -28,7 +28,8 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- run: yarn --frozen-lockfile
- uses: browser-actions/setup-chrome@latest
- uses: nick-invision/retry@v2
- name: Build apps (with retries)
uses: nick-invision/retry@v2
with:
timeout_minutes: 15
max_attempts: 3
Expand All @@ -37,11 +38,6 @@ jobs:
uses: GabrielBB/xvfb-action@v1
with:
run: yarn test:ci
- run: yarn lerna run --scope altair-app webdriver-update-ci;
- name: Run headless e2e test
uses: GabrielBB/xvfb-action@v1
with:
run: yarn lerna run --scope altair-app e2e:ci
# https://github.com/marketplace/actions/deployment-action
# deploy-surge:
# runs-on: ubuntu-latest
Expand Down

0 comments on commit c3be08f

Please sign in to comment.