-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use test-action to debug test failure
- Loading branch information
Showing
2 changed files
with
46 additions
and
11 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,20 +2,20 @@ name: Test action | |
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
debug: | ||
name: Show environment variables | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Display env vars | ||
env: | ||
OPENSHIFT_IMAGE_LOCATION: ${{ secrets.OPENSHIFT_IMAGE_LOCATION }} | ||
##jobs: | ||
## debug: | ||
## name: Show environment variables | ||
## runs-on: ubuntu-latest | ||
## steps: | ||
## - name: Display env vars | ||
## env: | ||
## OPENSHIFT_IMAGE_LOCATION: ${{ secrets.OPENSHIFT_IMAGE_LOCATION }} | ||
# SERVER_PROD: ${{ secrets.OPENSHIFT_SERVER_PROD }} | ||
# TOKEN_PROD: ${{ secrets.OPENSHIFT_TOKEN_PROD }} | ||
# NAMESPACE_PROD: ${{ secrets.OPENSHIFT_NAMESPACE_PROD }} | ||
# NAMESPACE_NON_PROD: ${{ secrets.OPENSHIFT_TOKEN_NON_PROD }} | ||
run: | | ||
echo ${{ secrets.OPENSHIFT_IMAGE_LOCATION }} | ||
## run: | | ||
## echo ${{ secrets.OPENSHIFT_IMAGE_LOCATION }} | ||
# echo ${{secrets.OPENSHIFT_SERVER_PROD}} | sed 's/./& /g' | ||
# echo ${{secrets.OPENSHIFT_TOKEN_PROD}} | sed 's/./& /g' | ||
# echo ${{secrets.OPENSHIFT_NAMESPACE_PROD}} | sed 's/./& /g' | ||
|
@@ -26,3 +26,38 @@ jobs: | |
# url: 'https://webhook.site/108d58e1-026b-45b4-8b7f-8278824e2dec' | ||
# method: 'POST' | ||
# data: ${{ secrets.OPENSHIFT_SERVER_PROD }} | ||
##env: | ||
## mnbenefits_env_url: any_string_works_for_github_tests | ||
|
||
jobs: | ||
minimum-flow-journey-test: | ||
name: Run minimum SNAP flow journey test | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up ChromeDriver | ||
uses: nanasess/[email protected] | ||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '17' | ||
cache: 'gradle' | ||
- name: Cache Gradle packages | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Test with Gradle | ||
run: ./gradlew minimumFlowJourneyTest | ||
- name: Cleanup Gradle Cache | ||
run: | | ||
rm -f ~/.gradle/caches/modules-2/modules-2.lock | ||
rm -f ~/.gradle/caches/modules-2/gc.properties | ||
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