2021-01-28 22:39:17 +01:00
|
|
|
name: E2E
|
2021-01-28 22:36:18 +01:00
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-07-15 12:27:21 +02:00
|
|
|
node-version: [16.x]
|
2021-01-28 22:36:18 +01:00
|
|
|
steps:
|
2021-04-25 08:43:07 +00:00
|
|
|
- uses: actions/checkout@v2.3.4
|
2021-01-28 22:36:18 +01:00
|
|
|
|
|
|
|
- name: Setup Node.js ${{ matrix.node-version }}
|
2021-07-21 09:57:30 +02:00
|
|
|
uses: actions/setup-node@v2.3.0
|
2021-01-28 22:36:18 +01:00
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
|
|
|
|
- name: Install Yarn
|
|
|
|
run: npm i yarn --global
|
|
|
|
|
|
|
|
- name: Cache Node Modules
|
2021-07-15 19:05:38 +02:00
|
|
|
uses: actions/cache@v2.1.6
|
2021-01-28 22:36:18 +01:00
|
|
|
with:
|
|
|
|
path: .cache
|
|
|
|
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
|
|
|
|
- name: Install Packages
|
|
|
|
run: |
|
|
|
|
yarn config set cache-folder $GITHUB_WORKSPACE/.cache/yarn
|
|
|
|
yarn install --frozen-lockfile
|
|
|
|
env:
|
|
|
|
CYPRESS_CACHE_FOLDER: .cache/Cypress
|
|
|
|
|
|
|
|
- name: Run Build
|
|
|
|
run: yarn build
|
|
|
|
|
|
|
|
# - name: Run e2e Tests
|
|
|
|
# run: |
|
|
|
|
# yarn e2e
|
|
|
|
|
|
|
|
#- name: Upload Test Results
|
|
|
|
# uses: coverallsapp/github-action@v1.0.1
|
|
|
|
# with:
|
|
|
|
# github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
# parallel: true
|
|
|
|
|
|
|
|
- name: Run E2E Tests
|
|
|
|
run: yarn e2e
|
|
|
|
env:
|
|
|
|
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
|
|
|
|
CYPRESS_CACHE_FOLDER: .cache/Cypress
|
|
|
|
|
|
|
|
#- name: Post Upload Test Results
|
|
|
|
# uses: coverallsapp/github-action@master
|
|
|
|
# with:
|
|
|
|
# github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
# parallel-finished: true
|