Reduce runs in parallel
This commit is contained in:
18
.github/workflows/e2e-tests.yml
vendored
18
.github/workflows/e2e-tests.yml
vendored
@@ -30,6 +30,7 @@ jobs:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: true
|
||||
max-parallel: 3
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
version: [latest, 2.30.0]
|
||||
@@ -195,23 +196,6 @@ jobs:
|
||||
connect-host: http://localhost:8080
|
||||
connect-token: ${{ secrets.OP_CONNECT_TOKEN }}
|
||||
|
||||
- name: Wait for Connect sync to be ready
|
||||
env:
|
||||
OP_CONNECT_HOST: http://localhost:8080
|
||||
run: |
|
||||
url="${OP_CONNECT_HOST}/health"
|
||||
for i in $(seq 1 12); do
|
||||
sync_status=$(curl -sf -H "Authorization: Bearer $OP_CONNECT_TOKEN" "$url" | jq -r '.dependencies[] | select(.service=="sync") | .status // empty')
|
||||
if [ "$sync_status" = "ACTIVE" ]; then
|
||||
echo "Connect sync is ready"
|
||||
exit 0
|
||||
fi
|
||||
echo "Waiting for sync ($i/12)... status=${sync_status:-unknown}"
|
||||
sleep 5
|
||||
done
|
||||
echo "Timeout waiting for Connect sync"
|
||||
exit 1
|
||||
|
||||
- name: Load secrets
|
||||
id: load_secrets
|
||||
uses: ./
|
||||
|
||||
Reference in New Issue
Block a user