-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (38 loc) · 1.33 KB
/
GRANTS-GPMATS-Regression.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
name: GRANTS-GPMATS-Regression
on:
schedule:
# This corresponds to 9:15 AM EST (2:15 PM UTC) from Monday to Friday
- cron: '15 14 * * MON-FRI'
workflow_dispatch:
inputs:
testBrowser:
description: 'Browser'
required: true
default: 'chrome'
jobs:
build:
runs-on: NCI-WINDOWS
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Run specific runner class
run: mvn -B -q -Dtest="GrantsApps.GrantsRunners.GPMATS.Run_GPMATS_Regression_Test" test
continue-on-error: true
- name: Generate timestamp
id: timestamp
run: |
$timeZone = [System.TimeZoneInfo]::FindSystemTimeZoneById("Eastern Standard Time")
$dateTime = [System.TimeZoneInfo]::ConvertTime([System.DateTime]::UtcNow, $timeZone)
$timestamp = $dateTime.ToString("yyyy-MM-dd_hh-mm-ss_tt")
Add-Content -Path $env:GITHUB_ENV -Value "timestamp=$timestamp"
- name: Determine report path
id: reportpath
run: echo "path=html-GPMATS-regression-reports" >> $GITHUB_ENV
- name: Upload Cucumber Report
uses: actions/upload-artifact@v4
if: always()
with:
name: GPMATS-REGRESSION-${{ env.timestamp }}
path: target/GPMATS-regression-reports/*