mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-06-01 06:16:14 -07:00
Merge remote-tracking branch 'origin/feature/orchestrator-unit-tests' into release/lts-2.0.0
# Conflicts: # .github/workflows/orchestrator-integrity.yml # dist/index.js.map
This commit is contained in:
22
.github/workflows/orchestrator-integrity.yml
vendored
22
.github/workflows/orchestrator-integrity.yml
vendored
@@ -221,8 +221,26 @@ jobs:
|
||||
fi
|
||||
|
||||
- run: yarn install --frozen-lockfile
|
||||
|
||||
- name: Create k3d cluster
|
||||
# ==========================================
|
||||
# FAST UNIT TESTS (no infra required, fast-fail gate)
|
||||
# ==========================================
|
||||
- name: Run orchestrator unit tests (fast, no infra)
|
||||
timeout-minutes: 2
|
||||
run: >-
|
||||
yarn run test
|
||||
--testPathPattern="orchestrator-guid|orchestrator-folders|task-parameter-serializer|follow-log-stream-service|runner-availability-service|provider-url-parser|provider-loader|provider-git-manager|orchestrator-image|orchestrator-hooks|orchestrator-github-checks"
|
||||
--verbose --detectOpenHandles --forceExit --runInBand
|
||||
# ==========================================
|
||||
# K8S TESTS SECTION
|
||||
# ==========================================
|
||||
- name: Clean up disk space before K8s tests
|
||||
run: |
|
||||
echo "Cleaning up disk space before K8s tests..."
|
||||
rm -rf ./orchestrator-cache/* || true
|
||||
sudo apt-get clean || true
|
||||
docker system prune -f || true
|
||||
df -h
|
||||
- name: Create k3s cluster (k3d)
|
||||
timeout-minutes: 5
|
||||
run: |
|
||||
LOCALSTACK_IP=$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' localstack-main 2>/dev/null || echo "")
|
||||
|
||||
Reference in New Issue
Block a user