mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-02-08 00:03:15 +08:00
Merge pull request #58 from aimingmed/feature/backend-frontend-structure
update to check
This commit is contained in:
commit
0bf7b47f6f
5
.github/workflows/build_new.yml
vendored
5
.github/workflows/build_new.yml
vendored
@ -61,7 +61,10 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
name: Run Tests
|
name: Run Tests
|
||||||
needs: build # Ensure this job runs after the build job
|
needs: build # Ensure this job runs after the build job
|
||||||
|
# Define necessary permissions if needed (e.g., for GitHub Packages)
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write # If pushing to GitHub Packages registry
|
||||||
# Call the reusable workflow for testing
|
# 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:
|
with:
|
||||||
|
|||||||
4
.github/workflows/template_test.yml
vendored
4
.github/workflows/template_test.yml
vendored
@ -78,7 +78,7 @@ jobs:
|
|||||||
$testComposePath = "${{ inputs.testComposeFilePath }}"
|
$testComposePath = "${{ inputs.testComposeFilePath }}"
|
||||||
|
|
||||||
# create compose structure (using YAML structure for Docker Compose v2+)
|
# create compose structure (using YAML structure for Docker Compose v2+)
|
||||||
$compose = @{ version = "3.8"; services = @{}; networks = @{} }
|
$compose = @{ services = @{}; networks = @{} }
|
||||||
$compose.networks.test = @{ external = $false; name = "test-network-${{ github.run_id }}" } # Use unique network name per run
|
$compose.networks.test = @{ external = $false; name = "test-network-${{ github.run_id }}" } # Use unique network name per run
|
||||||
|
|
||||||
# Generate services Section Based on Images inputs
|
# Generate services Section Based on Images inputs
|
||||||
@ -165,7 +165,7 @@ jobs:
|
|||||||
$ENV_ARGS \
|
$ENV_ARGS \
|
||||||
-v "$STAGING_DIR:$RESULTS_PATH" \
|
-v "$STAGING_DIR:$RESULTS_PATH" \
|
||||||
--rm \
|
--rm \
|
||||||
"${{ env.IMAGE_REPO }}/$($serviceName)/${{ inputs.testContainerName }}:${{ github.run_id }}" \
|
"${{ env.IMAGE_REPO }}/${{ inputs.testContainerName }}:${{ github.run_id }}" \
|
||||||
"$test_dir"
|
"$test_dir"
|
||||||
# Add error handling if needed (e.g., exit script if a test run fails)
|
# Add error handling if needed (e.g., exit script if a test run fails)
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user