Skip to content

Commit

Permalink
Failure to pull = Failure to run πŸƒβ€
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Douglas committed Dec 19, 2023
1 parent ddb57bf commit 2f32d08
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/CI-CD-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ jobs:
github.event.pull_request ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.test)
steps:
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run Tests With 3rd Party Service Mocking
run: docker run ghcr.io/hackforla/homeuniteus/api:latest pytest
test-api-nomock:
Expand All @@ -77,7 +83,9 @@ jobs:
COGNITO_ACCESS_KEY: ${{ secrets.COGNITO_ACCESS_KEY }}
steps:
- name: Run Tests Without Mocking
run: docker run --env COGNITO_REGION --env COGNITO_ACCESS_ID --env COGNITO_ACCESS_KEY ghcr.io/hackforla/homeuniteus/api:latest "pytest --mode=release"
run: |
docker pull ghcr.io/hackforla/homeuniteus/api:latest
docker run --env COGNITO_REGION --env COGNITO_ACCESS_ID --env COGNITO_ACCESS_KEY ghcr.io/hackforla/homeuniteus/api:latest "pytest --mode=release"
test-app-mock:
runs-on: ubuntu-latest
needs: [build-app, build-api]
Expand Down

0 comments on commit 2f32d08

Please sign in to comment.