Skip to content

update screenshot from github #19

update screenshot from github

update screenshot from github #19

Workflow file for this run

name: 'Run e2e Tests'
on:
push:
branches: [ e2e ]
pull_request:
branches: [ e2e ]
jobs:
e2e-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: 'true'
- uses: actions/setup-node@v4
with:
node-version: 18.12.x
cache: npm
cache-dependency-path: '**/package-lock.json'
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- run: pip install -r requirements.txt
- run: npm install -g bower
- run: bower install
working-directory: ./front-end
- name: Install build dependencies
run: npm ci
working-directory: ./front-end
- name: Build
run: |
echo "" >> .env.prod
echo "URL_LOCAL_SERVER=api/" >> .env.prod
npm run build
working-directory: ./front-end
- name: Build
id: build
working-directory: ./front-end/build
run: |
cd `ls | head`
BUILD_DIR="`pwd`"
echo BUILD_DIR="$BUILD_DIR" >> $GITHUB_OUTPUT
- uses: browser-actions/setup-chrome@v1
- name: Install test dependencies
run: npm ci
working-directory: ./e2e
- name: Run e2e tests
working-directory: ./e2e
env:
BROWSER_LIST: chrome
LOG_LEVEL: info
CHALKIT_DIR: ${{ steps.build.outputs.BUILD_DIR }}
run: |
echo CHALKIT_DIR="$CHALKIT_DIR"
echo BROWSER_LIST="chrome"
npm run test
- name: Upload test outputs
uses: actions/upload-artifact@v4
if: always()
with:
name: e2e-test-outputs
path: |
./e2e/outputs/
./e2e/mochawesome-report/
retention-days: 5
if-no-files-found: error
- uses: phoenix-actions/test-reporting@v13
if: always()
with:
name: E2e Tests Report
path: ./e2e/mochawesome-report/mochawesome.json
reporter: mochawesome-json
fail-on-error: true