This commit is contained in:
leehk 2025-04-16 17:22:25 +08:00
parent 13d5ab4098
commit bb27bfcfee

View File

@ -61,15 +61,21 @@ jobs:
test:
name: Run Integration Tests
needs: build # Ensure this job runs after the build job
runs-on: ubuntu-latest # Specify the runner
# Define necessary permissions if needed (e.g., for GitHub Packages)
permissions:
contents: read
packages: write # If pushing to GitHub Packages registry
steps:
- name: Set Image Repo
id: set_image_repo
run: echo "image_repo=ghcr.io/$(echo "$GITHUB_REPOSITORY" | tr '[A-Z]' '[a-z]')" >> $GITHUB_OUTPUT
shell: bash
# Call the reusable workflow for testing
uses: ./.github/workflows/template_test.yml # Path to the reusable workflow file
- uses: ./.github/workflows/template_test.yml # Path to the reusable workflow file
with:
projectName: aimingmed-ai
image_repo: ghcr.io/$(echo $GITHUB_REPOSITORY | tr '[A-Z]' '[a-z]')
image_repo: ${{ steps.set_image_repo.outputs.image_repo }}
testContainerName: tests-aimingmedai
# Pass test environment variables as JSON string
testEnvs: >
@ -85,7 +91,6 @@ jobs:
"tests/integration/backend",
]
# Pass image definitions for compose setup as JSON string
# Sensitive values should be passed via secrets and referenced within the template
images: >
[
{
@ -108,4 +113,3 @@ jobs:
}
}
]