blob: 82d74057758a37b0cb17c1a09fa1a74b73c1b3e8 [file] [log] [blame]
name: Frontend e2e test
on:
push:
branches:
- master
pull_request:
branches:
- master
defaults:
run:
working-directory: web
jobs:
web-e2e:
name: Frontend e2e test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache or restore node_modules
id: node_modules_cache_id
uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
- name: Setup Node.js environment
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Install dependencies
if: steps.node_modules_cache_id.outputs.cache-hit != 'true'
run: yarn install
- name: Start frontend then test
run: yarn test:e2e