Skip to content

GRANTS-EM-Regression #4

GRANTS-EM-Regression

GRANTS-EM-Regression #4

name: GRANTS-EM-Regression
on:
schedule:
# This corresponds to 9:30 AM EST (2:30 PM UTC) from Monday to Friday
- cron: '30 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.EnterpriseMaintenance.RunEMRegressionTest" 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-EM-reports" >> $GITHUB_ENV
- name: Upload Cucumber Report
uses: actions/upload-artifact@v4
if: always()
with:
name: EM-REGRESSION-${{ env.timestamp }}
path: target/EM-reports/*