mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-18 05:28:40 +00:00
e9c18d69ec
Co-authored-by: vdovhanych <dovhanych@me.com>
42 lines
1.5 KiB
YAML
42 lines
1.5 KiB
YAML
name: 'UI report'
|
|
description: 'Prepare and upload HTML report of UI test results'
|
|
inputs:
|
|
model:
|
|
description: 'Internal model name'
|
|
required: true
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Set AWS credentials
|
|
uses: aws-actions/configure-aws-credentials@v4
|
|
with:
|
|
role-to-assume: arn:aws:iam::538326561891:role/gh_actions_deploy_dev_firmware_data
|
|
aws-region: eu-west-1
|
|
- run: |
|
|
MODELJOB=${{ inputs.model }}-${{ github.job }}
|
|
OUTDIR=${{ github.run_id }}/$MODELJOB
|
|
mkdir -p $OUTDIR
|
|
nix-shell --run "poetry run python ci/prepare_ui_artifacts.py || true"
|
|
mv tests/ui_tests/reports/test/* $OUTDIR || true
|
|
mv tests/ui_tests/fixtures.*.json $OUTDIR || true
|
|
mv tests/trezor.log $OUTDIR || true
|
|
diff -u tests/ui_tests/fixtures.json tests/ui_tests/fixtures.suggestion.json || true
|
|
tar -cf screens_$MODELJOB.tar tests/ui_tests/screens || true
|
|
shell: sh
|
|
- name: Upload report
|
|
run: |
|
|
aws s3 sync ${{ github.run_id }} s3://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}
|
|
shell: sh
|
|
- name: Upload test screen recording
|
|
run: |
|
|
aws s3 sync ci/ui_test_records s3://data.trezor.io/dev/firmware/ui_tests
|
|
# TODO: generate directory listing / autoindex
|
|
shell: sh
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: ui-records
|
|
path: |
|
|
# used by core_ui_master
|
|
screens_${{ inputs.model }}-${{ github.job }}.tar
|
|
retention-days: 1 # not useful after workflow finishes
|