mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-10-29 18:12:34 +00:00
report overview generation (#375)
* automate overview page deployment * document overview page in README
This commit is contained in:
36
.github/workflows/update-overviews.yml
vendored
Normal file
36
.github/workflows/update-overviews.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
name: Update test report overview pages
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- ".allure-overview/**"
|
||||
|
||||
jobs:
|
||||
update_overview:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
test_type: ['sanity', 'interop', 'advanced', 'performance']
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
container: python:3.8
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: generate overview page
|
||||
run: |
|
||||
python .allure-overview/generate_overview.py ${{ matrix.test_type }} > index.html
|
||||
cat index.html
|
||||
|
||||
- name: upload overview page
|
||||
if: github.ref == 'refs/heads/master'
|
||||
env:
|
||||
AWS_S3_BUCKET_NAME: openwifi-allure-reports
|
||||
AWS_ACCOUNT_ID: "289708231103"
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.ALLURE_S3_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.ALLURE_S3_ACCESS_KEY_SECRET }}
|
||||
AWS_DEFAULT_REGION: us-east-1
|
||||
AWS_DEFAULT_OUTPUT: json
|
||||
run: aws s3 cp --acl public-read --content-type text/html index.html s3://${AWS_S3_BUCKET_NAME}/${{ matrix.test_type }}/overview/index.html
|
||||
|
||||
|
||||
Reference in New Issue
Block a user