E2E Reports #88
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-License-Identifier: Apache-2.0 | |
# Licensed to the Ed-Fi Alliance under one or more agreements. | |
# The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. | |
# See the LICENSE and NOTICES files in the project root for more information. | |
name: "E2E Reports" | |
on: | |
workflow_run: | |
workflows: ["Admin App E2E Tests"] | |
types: | |
- completed | |
env: | |
JIRA_ACCESS_TOKEN: ${{ secrets.JIRA_ACCESS_TOKEN }} | |
ADMIN_APP_VERSION: "3.0.0" | |
PROJECT_ID: "11900" | |
CYCLE_NAME: "Automation Cycle" | |
TASK_NAME: "Playwright Automation Task" | |
FOLDER_NAME: "Playwright Automation Run" | |
RESULTS_FILE: "test-results" | |
jobs: | |
report: | |
defaults: | |
run: | |
shell: pwsh | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 | |
- name: Generate report | |
uses: dorny/test-reporter@c9b3d0e2bd2a4e96aaf424dbaa31c46b42318226 # v1.6.0 | |
with: | |
artifact: ${{ env.RESULTS_FILE }} | |
name: Tests Results | |
path: "*.xml" | |
reporter: java-junit | |
fail-on-error: false | |
- name: Extract Artifact | |
run: Expand-Archive "${{ env.RESULTS_FILE }}.zip" | |
- name: Send report to Zephyr | |
if: github.event.workflow_run.head_branch == 'main' | |
run: | | |
$parameters = @{ | |
cycleName = '${{ env.CYCLE_NAME }}' | |
taskName = '${{ env.TASK_NAME }}' | |
folderName = '${{ env.FOLDER_NAME }}' | |
} | |
.\eng\send-test-results.ps1 -PersonalAccessToken ${{ env.JIRA_ACCESS_TOKEN }} -ProjectId ${{ env.PROJECT_ID }} -AdminAppVersion '${{ env.ADMIN_APP_VERSION }}' -ResultsFilePath '${{ env.RESULTS_FILE }}/playwright-results.xml' -ConfigParams $parameters |