2021-01-28 22:39:17 +01:00
|
|
|
name: E2E
|
2021-01-28 22:36:18 +01:00
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
2022-04-26 01:38:27 +02:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-01-28 22:36:18 +01:00
|
|
|
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:
|
2022-09-14 05:12:45 +02:00
|
|
|
- uses: actions/checkout@v3
|
2021-01-28 22:36:18 +01:00
|
|
|
|
2022-09-14 05:12:45 +02:00
|
|
|
- name: Setup Node.js ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
cache: yarn
|
|
|
|
node-version: ${{ matrix.node-version }}
|
2021-01-28 22:36:18 +01:00
|
|
|
|
2022-09-14 05:12:45 +02:00
|
|
|
- name: Install Yarn
|
|
|
|
run: npm i yarn --global
|
2021-01-28 22:36:18 +01:00
|
|
|
|
2022-09-14 05:12:45 +02:00
|
|
|
- name: Install Packages
|
|
|
|
run: |
|
|
|
|
yarn install --frozen-lockfile
|
|
|
|
env:
|
|
|
|
CYPRESS_CACHE_FOLDER: .cache/Cypress
|
2021-01-28 22:36:18 +01:00
|
|
|
|
2022-09-14 05:12:45 +02:00
|
|
|
- name: Run Build
|
|
|
|
run: yarn build
|
2021-01-28 22:36:18 +01:00
|
|
|
|
2022-09-14 05:12:45 +02:00
|
|
|
- name: Run E2E Tests
|
|
|
|
run: yarn e2e
|
|
|
|
env:
|
|
|
|
CYPRESS_CACHE_FOLDER: .cache/Cypress
|