hedgedoc/.github/workflows/e2e.yml

35 lines
897 B
YAML
Raw Normal View History

name: e2e
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
end2end:
runs-on: ubuntu-latest
strategy:
matrix:
2020-07-18 16:37:14 -04:00
browser: ['chrome', 'firefox']
name: ${{ matrix.browser }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Cache node_modules
uses: actions/cache@v1.1.0
with:
path: node_modules
key: node_modules
- name: Cache ~/.cache
uses: actions/cache@v1.1.0
with:
path: ~/.cache
key: cache
- name: install cypress dependencies
run: sudo apt-get install libgtk2.0-0 libgtk-3-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
- name: Install dependencies
run: yarn install
2020-07-18 16:37:14 -04:00
- name: Run e2e in ${{ matrix.browser }}
run: yarn e2e:${{ matrix.browser }}