End to End Test #9
Workflow file for this run
This file contains hidden or 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
| name: End to End Test | |
| permissions: | |
| contents: read # Required for actions/checkout | |
| id-token: write # Required for requesting the JWT | |
| pull-requests: write # Required to write comments | |
| on: | |
| workflow_call: | |
| workflow_dispatch: | |
| jobs: | |
| e2e: | |
| name: End to End Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout End to End | |
| uses: actions/checkout@v5 | |
| with: | |
| repository: 'nhsconnect/prm-repo-e2e-tests' | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'adopt' | |
| java-version: '21' | |
| - name: Configure AWS Credentials | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| id: creds | |
| with: | |
| # TODO might want a testing specific testing role | |
| role-to-assume: ${{ secrets.IAM_ROLE_ECR_HOLDING_ACCOUNT_READ_WRITE }} | |
| aws-region: ${{ vars.AWS_REGION }} | |
| mask-aws-account-id: true | |
| output-credentials: true | |
| - name: Build | |
| run: | | |
| chmod +x ./gradlew | |
| ./gradlew build | |
| - name: Run End to End tests | |
| env: | |
| NHS_ENVIRONMENT: dev | |
| AWS_REGION: ${{ vars.AWS_REGION }} | |
| AWS_DEFAULT_REGION: ${{ vars.AWS_REGION }} | |
| AWS_SESSION: ${{ steps.creds.outputs.aws-session-token }} | |
| AWS_ACCESS_KEY_ID: ${{ steps.creds.outputs.aws-access-key-id }} | |
| AWS_SECRET_ACCESS_KEY: ${{ steps.creds.outputs.aws-secret-access-key }} | |
| run: | | |
| ./gradlew test --tests "uk.nhs.prm.e2etests.test.repositorye2etest.RepositoryE2ETest" |