mirror of
https://github.com/wekan/wekan.git
synced 2026-01-15 05:58:51 +01:00
Merge branch 'main' into feature/add-ui-testing-workflow
This commit is contained in:
commit
44393f0081
1 changed files with 54 additions and 0 deletions
54
.github/workflows/e2e-testing.yml
vendored
54
.github/workflows/e2e-testing.yml
vendored
|
|
@ -265,3 +265,57 @@ jobs:
|
|||
|
||||
run: |
|
||||
pytest tests/
|
||||
if [ -d "allure-results" ]; then rm -rf allure-results; fi
|
||||
mkdir -p allure-results
|
||||
|
||||
cat > allure-results/environment.properties << EOF
|
||||
os_platform=$(uname -s)
|
||||
os_release=$(lsb_release -r | awk '{print $2}')
|
||||
os_version=$(lsb_release -c | awk '{print $2}')
|
||||
python_version=$(python --version | awk '{print $2}')
|
||||
Wekan.URL=http://${{ secrets.WEKAN_EC2_HOST_IP }}/
|
||||
Headless.Mode=true
|
||||
Wekan.Image=omriza5/wekan:${{ needs.deploy.outputs.wekan_image_tag }}
|
||||
EOF
|
||||
pytest --alluredir=allure-results tests/
|
||||
|
||||
allure-report:
|
||||
runs-on: ubuntu-latest
|
||||
needs: selenium-matrix-tests
|
||||
if: always()
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Download all Allure results
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
pattern: allure-results-*
|
||||
path: allure-results-downloaded
|
||||
merge-multiple: false
|
||||
|
||||
- name: Merge all results into single directory
|
||||
run: |
|
||||
mkdir -p allure-results
|
||||
for dir in allure-results-downloaded/*/; do
|
||||
if [ -d "$dir" ]; then
|
||||
cp -r "$dir"* allure-results/ 2>/dev/null || true
|
||||
fi
|
||||
done
|
||||
|
||||
- name: Generate and Deploy Allure Report
|
||||
uses: simple-elf/allure-report-action@master
|
||||
with:
|
||||
allure_results: allure-results
|
||||
allure_report: allure-report
|
||||
gh_pages: gh-pages
|
||||
allure_history: allure-history
|
||||
keep_reports: 20
|
||||
|
||||
- name: Deploy to GitHub Pages
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.UI_TESTING_GITHUB_TOKEN }}
|
||||
publish_dir: allure-history
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue