Skip to content

Commit 76190eb

Browse files
committed
Try running tests in CI
1 parent a60bb9f commit 76190eb

2 files changed

Lines changed: 49 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ jobs:
4040
needs: build-extension
4141
uses: ./.github/workflows/test_android.yml
4242

43+
test-integration:
44+
name: 🧪 Integration tests
45+
needs: build-extension
46+
uses: ./.github/workflows/test_integration.yml
47+
4348
package:
4449
name: 📦 Package
4550
needs: build-extension
@@ -54,7 +59,7 @@ jobs:
5459
# See issue: https://github.com/getsentry/sentry-godot/issues/41
5560
cleanup:
5661
name: 🗑️ Cleanup
57-
needs: [package, unit-tests, test-android, static-checks]
62+
needs: [package, unit-tests, test-android, test-integration, static-checks]
5863
runs-on: ubuntu-latest
5964
steps:
6065
- name: Delete sentry-godot-gdextension artifact
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: 🧪 Integration tests
2+
3+
on:
4+
workflow_call:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
test-android:
11+
name: Test {{matrix.platform}}
12+
runs-on: { { matrix.runner } }
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
include:
17+
- platform: Linux
18+
runner: ubuntu-latest
19+
- platform: Windows
20+
runner: windows-latest
21+
steps:
22+
- name: Checkout repo
23+
uses: actions/checkout@v4
24+
with:
25+
submodules: false # don't initialize submodules automatically
26+
27+
- name: Prepare testing
28+
uses: ./.github/actions/prepare-testing
29+
timeout-minutes: 15
30+
with:
31+
arch: x86_64
32+
android: ${{ matrix.platform == 'Android' && 'true' || 'false' }}
33+
34+
- name: Install Pester module for pwsh
35+
shell: pwsh
36+
run: Install-Module -Name Pester -Force -SkipPublisherCheck
37+
38+
- name: Run integration tests locally
39+
shell: pwsh
40+
env:
41+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_API_TOKEN }}
42+
SENTRY_TEST_PLATFORM: ${{ matrix.platform }}
43+
run: Invoke-Pester -Script integration_tests/Integration.Tests.ps1

0 commit comments

Comments
 (0)