#45 filter more non-human access logs #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cypress run | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
run-cypress-tests: | |
runs-on: ubuntu-20.04 | |
container: ghcr.io/startnext/startnext-cypress:latest | |
services: | |
testing: | |
image: ghcr.io/${{ github.repository }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Copy node_modules within image | |
run: cp /usr/app/* . -r | |
- name: Make dir writable for screenshots and videos | |
run: chmod o+w . -R | |
- name: Record working directory | |
id: pwd_step | |
run: echo "::set-output name=dir::$(pwd)\n" | |
- name: Run test | |
run: su node -c 'bash -c "cypress run --env type=actual cypress/integration/gruenesbrett.spec.js"' | |
- name: Allow downloading screenshots and videos over the GitHub interface | |
if: always() | |
uses: actions/upload-artifact@v2 | |
with: | |
path: | | |
${{ steps.pwd_step.outputs.dir }}/cypress/snapshots | |
${{ steps.pwd_step.outputs.dir }}/cypress/videos |