File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : End-to-End Tests
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ paths :
8+ - ' destination-surrealdb/**'
9+ - ' .devcontainer/**'
10+ - ' scripts/e2e-test.sh'
11+ - ' .github/workflows/e2e-test.yml'
12+ pull_request :
13+ branches :
14+ - main
15+ paths :
16+ - ' destination-surrealdb/**'
17+ - ' .devcontainer/**'
18+ - ' scripts/e2e-test.sh'
19+ - ' .github/workflows/e2e-test.yml'
20+
21+ jobs :
22+ e2e-tests :
23+ runs-on : ubuntu-latest
24+ permissions :
25+ contents : read
26+ packages : read
27+ strategy :
28+ matrix :
29+ # Test with different SurrealDB versions
30+ surrealdb-version : ["v3.0.0-alpha.5", "v2.3.3", "v2.2.3"]
31+ env :
32+ SURREALDB_VERSION : ${{ matrix.surrealdb-version }}
33+ TIMEOUT_SECONDS : ${{ github.event.inputs.timeout_seconds || '600' }}
34+ steps :
35+ - name : Checkout repository
36+ uses : actions/checkout@v4
37+
38+ - name : Run end-to-end tests in dev container
39+ uses : devcontainers/ci@v0.3
40+ env :
41+ SURREALDB_VERSION : ${{ matrix.surrealdb-version }}
42+ TIMEOUT_SECONDS : ${{ github.event.inputs.timeout_seconds || '600' }}
43+ with :
44+ subFolder : .
45+ env : |
46+ SURREALDB_VERSION=${{ matrix.surrealdb-version }}
47+ TIMEOUT_SECONDS=${{ github.event.inputs.timeout_seconds || '600' }}
48+ runCmd : |
49+ echo "=== Starting End-to-End Test ==="
50+ echo "SurrealDB version: $SURREALDB_VERSION"
51+ echo "Timeout: $TIMEOUT_SECONDS seconds"
52+
53+ echo "=== Running end-to-end test ==="
54+ # Run the end-to-end test script
55+ ./scripts/e2e-test.sh
56+ push : never
You can’t perform that action at this time.
0 commit comments