Skip to content

Commit

Permalink
use test-action to debug test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
BisekJM committed Nov 22, 2024
1 parent 103e150 commit 08af05c
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 11 deletions.
55 changes: 45 additions & 10 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
@Tag("minimumFlowJourney")
public class MinimumCcapFlowJourneyTest extends JourneyTest {

@Disabled("This test passes on VDIs but fails on GitHub")
//@Disabled("This test passes on VDIs but fails on GitHub")
@Test
void fullApplicationOnlyCCAP() {
when(clock.instant()).thenReturn(
Expand Down

0 comments on commit 08af05c

Please sign in to comment.