forked from Ed-Fi-Alliance-OSS/Ed-Fi-ODS-AdminApp
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (46 loc) · 1.74 KB
/
e2e-reports.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# 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
permissions: read-all
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