-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_ci-e2e-tauri-all-providers.reusable.yml
More file actions
559 lines (488 loc) · 24.2 KB
/
_ci-e2e-tauri-all-providers.reusable.yml
File metadata and controls
559 lines (488 loc) · 24.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
name: Tauri E2E Tests - All Providers
description: 'Runs Tauri E2E tests for all WebDriver providers (official, embedded, CrabNebula) sequentially on a single runner'
permissions:
contents: read
on:
workflow_call:
inputs:
os:
description: 'Operating system to run tests on'
required: true
type: string
node-version:
description: 'Node.js version to use for testing'
required: true
type: string
test-type:
description: 'Test type (standard, window, multiremote, standalone, deeplink)'
type: string
default: 'standard'
build_id:
description: 'Build ID from the build job'
type: string
required: false
artifact_size:
description: 'Size of the build artifact in bytes'
type: string
required: false
cache_key:
description: 'Cache key to use for downloading package artifacts'
type: string
required: false
tauri_cache_key:
description: 'Cache key to use for downloading Tauri app binaries'
type: string
required: false
env:
TURBO_TELEMETRY_DISABLED: 1
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
jobs:
e2e-tauri:
name: Tauri E2E Tests
runs-on: ${{ inputs.os }}
steps:
# ══════════════════════════════════════════════════════════════
# SHARED SETUP (runs once, reused by all providers)
# ══════════════════════════════════════════════════════════════
- name: 👷 Checkout Repository
uses: actions/checkout@v6
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
- name: 🛠️ Setup Development Environment
uses: ./.github/workflows/actions/setup-workspace
with:
node-version: ${{ inputs.node-version }}
- name: 🔧 Fix ARM64 Package Sources (Linux)
if: runner.os == 'Linux' && runner.arch == 'ARM64'
shell: bash
run: |
echo "Fixing ARM64 package sources for Ubuntu..."
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy main restricted universe multiverse" | sudo tee /etc/apt/sources.list.d/arm64-jammy.list > /dev/null
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/arm64-jammy.list > /dev/null
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/arm64-jammy.list > /dev/null
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-security main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/arm64-jammy.list > /dev/null
sudo sed -i -e 's/^deb http/deb [arch=amd64] http/' /etc/apt/sources.list
sudo sed -i -e 's/^deb mirror/deb [arch=amd64] mirror/' /etc/apt/sources.list
sudo apt-get update
- name: 🦀 Install Tauri Runtime Dependencies (Linux)
if: runner.os == 'Linux'
shell: bash
run: |
echo "Installing Tauri runtime dependencies for Linux..."
if [ "$(uname -m)" != "aarch64" ]; then
echo "deb http://archive.ubuntu.com/ubuntu jammy main universe" | sudo tee -a /etc/apt/sources.list > /dev/null
fi
sudo apt-get update
sudo apt-get --fix-broken install -y || true
sudo apt-get install -y \
libwebkit2gtk-4.1-0 \
libgtk-3-0t64 \
libayatana-appindicator3-1
# Rust needed for official provider (tauri-driver auto-install)
# Only installed on Linux/Windows where official provider runs
- name: 🦀 Setup Rust (for tauri-driver auto-install)
if: inputs.os != 'macos-latest' && inputs.os != 'macos-15-intel'
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
# WebKitWebDriver needed for official + crabnebula providers on Linux
- name: 🌐 Install WebKit WebDriver (Linux)
if: runner.os == 'Linux'
shell: bash
run: |
echo "Installing WebKit WebDriver for Linux..."
sudo apt-get install -y webkit2gtk-driver
which WebKitWebDriver || echo "WebKitWebDriver not found in PATH"
WebKitWebDriver --version || echo "WebKitWebDriver version check failed"
- name: 📦 Download Package Build Artifacts
uses: ./.github/workflows/actions/download-archive
with:
name: wdio-desktop-mobile
path: wdio-desktop-mobile-build
filename: artifact.zip
cache_key_prefix: wdio-desktop-build
exact_cache_key: ${{ inputs.cache_key || github.run_id && format('{0}-{1}-{2}-{3}{4}', 'Linux', 'wdio-desktop-build', 'wdio-desktop-mobile', github.run_id, github.run_attempt > 1 && format('-rerun{0}', github.run_attempt) || '') || '' }}
- name: 📦 Download Tauri E2E App Binary
uses: ./.github/workflows/actions/download-archive
with:
name: tauri-e2e-app-${{ runner.os }}-${{ runner.arch }}
path: tauri-e2e-app-${{ runner.os }}-${{ runner.arch }}
filename: artifact.zip
cache_key_prefix: tauri-e2e-app
exact_cache_key: ${{ inputs.tauri_cache_key }}
- name: ✅ Verify Tauri Binaries
shell: bash
run: |
echo "Checking for Tauri binaries in fixtures/e2e-apps/tauri/src-tauri/target/"
if [ ! -d "fixtures/e2e-apps/tauri" ]; then
echo "::error::fixtures/e2e-apps/tauri directory not found!"
exit 1
fi
TARGET_DIRS=$(find fixtures/e2e-apps/tauri -name "target" -type d 2>/dev/null || true)
if [ -z "$TARGET_DIRS" ]; then
echo "::error::No target directories found! Binaries were not extracted correctly."
echo "Directory contents:"
ls -la fixtures/e2e-apps/tauri/ || true
ls -la fixtures/e2e-apps/tauri/src-tauri/ || true
exit 1
fi
echo "✅ Found target directories:"
echo "$TARGET_DIRS"
BINARY_COUNT=0
for target_dir in $TARGET_DIRS; do
if [ "${{ runner.os }}" = "Windows" ]; then
if compgen -G "$target_dir/debug/*.exe" > /dev/null 2>&1; then
BINARY_COUNT=$((BINARY_COUNT + 1))
echo " ✅ Found Windows binary in $target_dir/debug/"
fi
elif [ "${{ runner.os }}" = "macOS" ]; then
if find "$target_dir/debug" -maxdepth 1 -type f -perm +111 2>/dev/null | grep -q .; then
BINARY_COUNT=$((BINARY_COUNT + 1))
echo " ✅ Found macOS raw binary in $target_dir/debug/"
else
for search_path in "$target_dir/debug/bundle/macos" "$target_dir/aarch64-apple-darwin/debug/bundle/macos" "$target_dir/x86_64-apple-darwin/debug/bundle/macos" "$target_dir/universal-apple-darwin/debug/bundle/macos"; do
if compgen -G "$search_path/*.app" > /dev/null 2>&1; then
BINARY_COUNT=$((BINARY_COUNT + 1))
echo " ✅ Found macOS app bundle in $search_path/"
break
fi
done
fi
else
if find "$target_dir/debug" -maxdepth 1 -type f -executable 2>/dev/null | grep -q .; then
BINARY_COUNT=$((BINARY_COUNT + 1))
echo " ✅ Found binary in $target_dir/debug/"
fi
fi
done
if [ "$BINARY_COUNT" -eq 0 ]; then
echo "::error::No binaries found in target directories!"
echo ""
echo "Directory structure for debugging:"
for target_dir in $TARGET_DIRS; do
echo "=== $target_dir ==="
ls -la "$target_dir/" 2>/dev/null | head -10 || echo "Cannot list directory"
echo ""
echo "=== $target_dir/debug/ ==="
ls -la "$target_dir/debug/" 2>/dev/null | head -20 || echo "Cannot list debug directory"
if [ "${{ runner.os }}" = "macOS" ]; then
echo ""
echo "Looking for .app bundles..."
find "$target_dir" -name "*.app" -type d 2>/dev/null | head -5 || echo "No .app bundles found"
echo ""
echo "Looking for bundle directories..."
find "$target_dir" -type d -name "bundle" 2>/dev/null | head -5 || echo "No bundle directories found"
if [ -d "$target_dir/debug/bundle" ]; then
echo ""
echo "=== $target_dir/debug/bundle/ ==="
ls -la "$target_dir/debug/bundle/" 2>/dev/null || echo "Cannot list bundle directory"
if [ -d "$target_dir/debug/bundle/macos" ]; then
echo ""
echo "=== $target_dir/debug/bundle/macos/ ==="
ls -la "$target_dir/debug/bundle/macos/" 2>/dev/null || echo "Cannot list macos directory"
fi
fi
fi
done
exit 1
fi
echo "✅ Verification complete: Found $BINARY_COUNT app(s) with binaries"
- name: 📊 Show Build Information
if: inputs.build_id != '' && inputs.artifact_size != ''
shell: bash
run: |
echo "::notice::Package build: ID=${{ inputs.build_id }}, Size=${{ inputs.artifact_size }} bytes"
echo "::notice::Tauri binaries: Using pre-built binaries for ${{ runner.os }}"
- name: 🔗 Setup Protocol Handlers
shell: bash
run: |
echo "=== Protocol Handler Setup ==="
echo "Runner OS: ${{ runner.os }}"
echo "Working directory: $(pwd)"
echo ""
echo "Setting up protocol handler for: tauri"
if [ "${{ runner.os }}" == "Windows" ]; then
echo "Setting up Windows protocol handler..."
echo "Checking if src-tauri/target directory exists..."
ls -la ./fixtures/e2e-apps/tauri/src-tauri/target/ || echo "src-tauri/target/ not found"
echo ""
powershell -ExecutionPolicy Bypass -File ./fixtures/e2e-apps/tauri/scripts/setup-protocol-handler.ps1
EXIT_CODE=$?
if [ $EXIT_CODE -ne 0 ]; then
echo "Error: Protocol handler setup failed for tauri with exit code $EXIT_CODE"
exit 1
fi
elif [ "${{ runner.os }}" == "Linux" ]; then
echo "Setting up Linux protocol handler..."
echo "Checking if src-tauri/target directory exists..."
ls -la ./fixtures/e2e-apps/tauri/src-tauri/target/ || echo "src-tauri/target/ not found"
echo ""
chmod +x ./fixtures/e2e-apps/tauri/scripts/setup-protocol-handler.sh
./fixtures/e2e-apps/tauri/scripts/setup-protocol-handler.sh
EXIT_CODE=$?
if [ $EXIT_CODE -ne 0 ]; then
echo "Error: Protocol handler setup failed for tauri with exit code $EXIT_CODE"
exit 1
fi
else
echo "macOS: Protocol handlers are registered by the app itself via deep-link configuration"
echo "No external setup needed - the app registers on first launch"
fi
echo ""
echo "=== Protocol Handler Setup Complete ==="
- name: 🔍 Verify Protocol Registration
if: runner.os != 'macOS'
shell: bash
run: |
echo "=== Protocol Registration Verification ==="
if [ "${{ runner.os }}" == "Linux" ]; then
echo "Linux: Checking xdg-mime registration..."
xdg-mime query default x-scheme-handler/testapp || echo "WARNING: No handler registered for testapp://"
echo ""
echo "Checking .desktop file..."
if [ -f "$HOME/.local/share/applications/tauri-e2e-app-testapp.desktop" ]; then
echo "✅ Desktop file exists:"
cat "$HOME/.local/share/applications/tauri-e2e-app-testapp.desktop"
else
echo "❌ Desktop file NOT found at ~/.local/share/applications/tauri-e2e-app-testapp.desktop"
fi
echo ""
echo "Checking desktop database..."
update-desktop-database "$HOME/.local/share/applications" 2>/dev/null || true
elif [ "${{ runner.os }}" == "Windows" ]; then
echo "Windows: Checking registry..."
reg query "HKCR\testapp" 2>nul || echo "❌ Protocol NOT registered in HKCR\testapp"
reg query "HKCR\testapp\shell\open\command" 2>nul || echo "❌ Command key NOT found"
fi
echo ""
echo "=== Protocol Verification Complete ==="
- name: 🪄 Generate Test Commands
id: gen-test
uses: actions/github-script@v9
with:
script: |
const ALLOWED = ['standard', 'window', 'multiremote', 'standalone', 'deeplink'];
const testType = '${{ inputs.test-type }}'.trim();
if (!ALLOWED.includes(testType)) {
core.setFailed(`Invalid test-type: "${testType}". Allowed: ${ALLOWED.join(', ')}`);
return;
}
const suffix = testType !== 'standard' ? `:${testType}` : '';
core.setOutput('official', `test:e2e:tauri-basic${suffix}`);
core.setOutput('embedded', `test:e2e:tauri-basic-embedded${suffix}`);
core.setOutput('crabnebula', `test:e2e:tauri-basic-crabnebula${suffix}`);
# ══════════════════════════════════════════════════════════════
# PROVIDER 1: OFFICIAL (tauri-driver) — skipped on macOS
# ══════════════════════════════════════════════════════════════
- name: 🧹 Cleanup [Official]
if: inputs.os != 'macos-latest' && inputs.os != 'macos-15-intel'
shell: bash
run: |
echo "Cleaning up before Official provider tests..."
if [ "${{ runner.os }}" == "Windows" ]; then
powershell -Command "Get-Process -Name 'tauri-driver','msedgedriver','tauri-e2e-app' -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue" || true
else
pkill -9 -f tauri-driver || true
pkill -9 -f tauri-e2e-app || true
fi
- name: 🧪 E2E Tests [Official]
id: test-official
if: inputs.os != 'macos-latest' && inputs.os != 'macos-15-intel'
continue-on-error: true
shell: pwsh
working-directory: e2e
env:
RUST_BACKTRACE: '1'
NO_AT_BRIDGE: '1'
DRIVER_PROVIDER: 'official'
run: |
if ($env:RUNNER_OS -eq "Linux") {
xvfb-run --auto-servernum --server-args="-screen 0 1280x1024x16" `
pnpm run ${{ steps.gen-test.outputs.official }}
} else {
pnpm run ${{ steps.gen-test.outputs.official }}
}
- name: 🧹 Post-cleanup [Official]
if: always() && inputs.os != 'macos-latest' && inputs.os != 'macos-15-intel'
shell: bash
run: |
echo "Cleaning up after Official provider tests..."
if [ "${{ runner.os }}" == "Windows" ]; then
powershell -Command "Get-Process -Name 'tauri-driver','msedgedriver','tauri-e2e-app' -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue" || true
else
pkill -9 -f tauri-driver || true
pkill -9 -f msedgedriver || true
pkill -9 -f tauri-e2e-app || true
fi
- name: 🐛 Debug Information [Official]
if: always() && inputs.os != 'macos-latest' && inputs.os != 'macos-15-intel'
shell: bash
run: pnpm exec tsx e2e/scripts/show-logs.ts --provider official
# ══════════════════════════════════════════════════════════════
# PROVIDER 2: EMBEDDED (tauri-plugin-webdriver)
# ══════════════════════════════════════════════════════════════
- name: 🧹 Cleanup [Embedded]
if: always()
shell: bash
run: |
echo "Cleaning up before Embedded provider tests..."
if [ "${{ runner.os }}" == "Windows" ]; then
powershell -Command "Get-Process -Name 'tauri-e2e-app' -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue" || true
else
pkill -9 -f tauri-e2e-app || true
fi
- name: 🧪 E2E Tests [Embedded]
id: test-embedded
continue-on-error: true
shell: pwsh
working-directory: e2e
env:
RUST_BACKTRACE: '1'
NO_AT_BRIDGE: '1'
DRIVER_PROVIDER: 'embedded'
run: |
if ($env:RUNNER_OS -eq "Linux") {
xvfb-run --auto-servernum --server-args="-screen 0 1280x1024x16" `
pnpm run ${{ steps.gen-test.outputs.embedded }}
} else {
pnpm run ${{ steps.gen-test.outputs.embedded }}
}
- name: 🧹 Post-cleanup [Embedded]
if: always()
shell: bash
run: |
echo "Cleaning up after Embedded provider tests..."
if [ "${{ runner.os }}" == "Windows" ]; then
powershell -Command "Get-Process -Name 'tauri-e2e-app' -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue" || true
else
pkill -9 -f tauri-e2e-app || true
fi
- name: 🐛 Debug Information [Embedded]
if: always()
shell: bash
run: pnpm exec tsx e2e/scripts/show-logs.ts --provider embedded
# ══════════════════════════════════════════════════════════════
# PROVIDER 3: CRABNEBULA
# ══════════════════════════════════════════════════════════════
- name: 🧹 Cleanup [CrabNebula]
if: always()
shell: bash
run: |
echo "Cleaning up before CrabNebula provider tests..."
if [ "${{ runner.os }}" == "Windows" ]; then
powershell -Command "Get-Process -Name 'tauri-e2e-app' -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue" || true
powershell -Command "Get-Process -Name 'test-runner-backend' -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue" || true
powershell -Command "Get-Process -Name 'tauri-driver' -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue" || true
else
pkill -9 -f tauri-e2e-app || true
pkill -9 -f test-runner-backend || true
pkill -9 -f tauri-driver || true
fi
- name: 🧪 E2E Tests [CrabNebula]
id: test-crabnebula
continue-on-error: true
shell: pwsh
working-directory: e2e
env:
RUST_BACKTRACE: '1'
NO_AT_BRIDGE: '1'
DRIVER_PROVIDER: 'crabnebula'
CN_API_KEY: ${{ secrets.CN_API_KEY }}
run: |
if ($env:RUNNER_OS -eq "Linux") {
xvfb-run --auto-servernum --server-args="-screen 0 1280x1024x16" `
pnpm run ${{ steps.gen-test.outputs.crabnebula }}
} else {
pnpm run ${{ steps.gen-test.outputs.crabnebula }}
}
- name: 🧹 Post-cleanup [CrabNebula]
if: always()
shell: bash
run: |
echo "Cleaning up after CrabNebula provider tests..."
if [ "${{ runner.os }}" == "Windows" ]; then
powershell -Command "Get-Process -Name 'tauri-e2e-app' -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue" || true
powershell -Command "Get-Process -Name 'test-runner-backend' -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue" || true
powershell -Command "Get-Process -Name 'tauri-driver' -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue" || true
else
pkill -9 -f tauri-e2e-app || true
pkill -9 -f test-runner-backend || true
pkill -9 -f tauri-driver || true
fi
- name: 🐛 Debug Information [CrabNebula]
if: always()
shell: bash
run: pnpm exec tsx e2e/scripts/show-logs.ts --provider crabnebula
# ══════════════════════════════════════════════════════════════
# REPORTING & ARTIFACTS
# ══════════════════════════════════════════════════════════════
- name: 📊 Provider Summary
if: always()
shell: bash
run: |
echo "## Tauri E2E Results — ${{ inputs.os }} / ${{ inputs.test-type }}" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "| Provider | Result |" >> $GITHUB_STEP_SUMMARY
echo "|----------|--------|" >> $GITHUB_STEP_SUMMARY
official="${{ steps.test-official.outcome }}"
embedded="${{ steps.test-embedded.outcome }}"
crabnebula="${{ steps.test-crabnebula.outcome }}"
format_result() {
local provider="$1" outcome="$2"
case "$outcome" in
success) echo "| $provider | ✅ Passed |" >> $GITHUB_STEP_SUMMARY ;;
failure) echo "| $provider | ❌ Failed |" >> $GITHUB_STEP_SUMMARY ;;
cancelled) echo "| $provider | ⚠️ Cancelled |" >> $GITHUB_STEP_SUMMARY ;;
skipped|"") echo "| $provider | ⏭️ Skipped |" >> $GITHUB_STEP_SUMMARY ;;
*) echo "| $provider | ❓ $outcome |" >> $GITHUB_STEP_SUMMARY ;;
esac
}
format_result "Official" "$official"
format_result "Embedded" "$embedded"
format_result "CrabNebula" "$crabnebula"
- name: 📦 Upload Test Logs
if: always()
continue-on-error: true
uses: actions/upload-artifact@v7
with:
name: e2e-tauri-logs-${{ inputs.os }}-${{ github.run_id }}-${{ github.run_attempt }}-${{ inputs.test-type }}
path: e2e/logs/**/*.log
retention-days: 90
if-no-files-found: warn
# Fail the job if any provider failed
- name: ❌ Check Provider Results
if: always()
shell: bash
run: |
official="${{ steps.test-official.outcome }}"
embedded="${{ steps.test-embedded.outcome }}"
crabnebula="${{ steps.test-crabnebula.outcome }}"
failed=false
check_result() {
local provider="$1" outcome="$2"
case "$outcome" in
success|skipped|"") ;;
failure)
echo "::error::$provider provider tests failed"
failed=true ;;
cancelled)
echo "::error::$provider provider tests were cancelled"
failed=true ;;
*)
echo "::error::$provider provider had unexpected outcome: $outcome"
failed=true ;;
esac
}
check_result "Official" "$official"
check_result "Embedded" "$embedded"
check_result "CrabNebula" "$crabnebula"
if [ "$failed" = "true" ]; then
exit 1
fi
echo "All providers passed"
- name: 🐛 Debug Build on Failure
if: failure()
uses: goosewobbler/[email protected]
with:
timeout: '300000'