Skip to content

release schedule automation #453

release schedule automation

release schedule automation #453

Workflow file for this run

name: πŸ§ͺ End To End (e2e) Tests Workflow
on:
push:
branches: [ main ]
pull_request:
branches: [ main, develop ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
e2e-tests:
runs-on: ubuntu-latest
steps:
- name: πŸ›’ Checkout
uses: actions/checkout@v2
- name: 🧱 Hugo build
uses: jakejarvis/hugo-build-action@master
with:
args: --gc --config ./config.toml -b http://localhost:1313
- name: πŸ•ΈοΈ Run server
run: |
cd public && python -m http.server 1313 &
- name: 🐍 Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: πŸ‘¨β€πŸ‘©β€πŸ‘§ Install dependencies
working-directory: ./test
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: 🧭 Ensure browsers are installed
run: python -m playwright install --with-deps
- name: πŸ§ͺ Run your tests
working-directory: ./test
run: pytest --base-url http://localhost:1313 -v --junitxml report.xml e2e/*
- name: πŸ“· Save screenshots
uses: actions/upload-artifact@v2
with:
name: screenshots
path: test/screenshots/
- name: πŸ“– Publish Test Report
uses: dorny/test-reporter@v1
if: always()
with:
name: E2E Tests
path: './test/report.xml'
reporter: java-junit