Skip to content

Commit

Permalink
Run the integration tests on main (#679)
Browse files Browse the repository at this point in the history
Signed-off-by: Radoslav Dimitrov <[email protected]>
  • Loading branch information
rdimitrov authored Jan 21, 2025
1 parent 84c8a6e commit 4588a3e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/run-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
with:
artifact-name: "codegate-image"
integration-tests:
if: github.event.pull_request.head.repo.full_name == 'stacklok/codegate'
name: Integration Tests
needs: [ci, image-build] # We need the image available in order to run the integration tests
uses: ./.github/workflows/integration-tests.yml
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/run-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,21 @@ jobs:
ci:
name: Build, Test & Lint
uses: ./.github/workflows/ci.yml
image-build:
name: OCI Image - Build
needs: [ci] # No need to build the image if the CI fails
uses: ./.github/workflows/image-build.yml
with:
artifact-name: "codegate-image"
integration-tests:
name: Integration Tests
needs: [ci, image-build] # We need the image available in order to run the integration tests
uses: ./.github/workflows/integration-tests.yml
with:
artifact-name: "codegate-image"
secrets:
copilot-key: ${{ secrets.INTEGRATION_TESTS_COPILOT_KEY }}
openapi:
name: Generate the OpenAPI docs
needs: [ci]
uses: ./.github/workflows/openapi.yml
uses: ./.github/workflows/openapi.yml

0 comments on commit 4588a3e

Please sign in to comment.