forked from databricks/databricks-jdbc
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.6 KB
/
prIntegrationTests.yml
File metadata and controls
40 lines (37 loc) · 1.6 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
name: Integration Tests Workflow - Pull Requests
on:
pull_request:
types: [opened, synchronize, reopened]
branches: [main]
jobs:
build-and-test:
name: Build and Run Integration Tests (PR)
runs-on:
group: databricks-protected-runner-group
labels: linux-ubuntu-latest
strategy:
matrix:
include:
# SQL_EXEC mode: Tests SEA client behavior
# Note: CircuitBreakerIntegrationTests requires THRIFT_SERVER mode (tested in second matrix entry)
- test-command: mvn -B compile test -Dtest=*IntegrationTests,!M2MPrivateKeyCredentialsIntegrationTests,!M2MAuthIntegrationTests,!CircuitBreakerIntegrationTests
fake-service-type: 'SQL_EXEC'
# THRIFT_SERVER mode: Tests Thrift client behavior and circuit breaker fallback
- test-command: mvn -B compile test -Dtest=*IntegrationTests,!M2MPrivateKeyCredentialsIntegrationTests,!SqlExecApiHybridResultsIntegrationTests,!DBFSVolumeIntegrationTests,!M2MAuthIntegrationTests,!UCVolumeIntegrationTests,!SqlExecApiIntegrationTests
fake-service-type: 'THRIFT_SERVER'
steps:
- name: Checkout PR
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'adopt'
- uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Run Integration Tests (without secrets)
run: ${{ matrix.test-command }}
env:
FAKE_SERVICE_TYPE: ${{ matrix.fake-service-type }}