Skip to content

Commit 9302487

Browse files
chore: update gh action for verification
1 parent a41fb46 commit 9302487

23 files changed

+326
-5
lines changed

.github/workflows/verify-examples-and-tests.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Verify Examples and Integration Tests
22
on:
3+
push:
4+
branches:
5+
- "mdwairi/move-integration-tests"
36
pull_request:
47
branches:
58
- 'main'
@@ -19,7 +22,7 @@ jobs:
1922
examples:
2023
- 'examples/**'
2124
integration-tests:
22-
- 'tests/integration/**'
25+
- 'integration-tests/**'
2326
2427
verify-examples:
2528
needs: detect-changes
@@ -32,9 +35,8 @@ jobs:
3235
java-version: '11'
3336
distribution: 'temurin'
3437
- name: verify examples
35-
working-directory: examples
3638
run: |
37-
mvn verify \
39+
./gradlew :examples:run \
3840
-Dcom.expediagroup.xapjavasdk.apikey="${{ secrets.API_KEY }}" \
3941
-Dcom.expediagroup.xapjavasdk.apisecret="${{ secrets.API_SECRET }}" \
4042
-Dcom.expediagroup.xapjavasdk.vrbokey="${{ secrets.VRBO_KEY }}" \
@@ -51,6 +53,5 @@ jobs:
5153
java-version: '11'
5254
distribution: 'temurin'
5355
- name: verify integration tests
54-
working-directory: tests/integration
5556
run: |
56-
mvn verify
57+
./gradlew :integration-tests:test

examples/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
group = project.property("GROUP_ID") as String
22

33
plugins {
4+
application
45
checkstyle
56
}
67

8+
application {
9+
mainClass.set("com.expediagroup.sdk.xap.examples.XapSdkDemoTestRun")
10+
}
11+
712
checkstyle {
813
val archive =
914
configurations.checkstyle.get().resolve().filter {

xap-sdk/src/main/kotlin/com/expediagroup/sdk/xap/models/Room.kt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* Copyright (C) 2025 Expedia, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.expediagroup.sdk.xap.models
217

318
data class Room(

xap-sdk/src/main/kotlin/com/expediagroup/sdk/xap/operations/GetActivityDetailsOperation.kt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* Copyright (C) 2025 Expedia, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.expediagroup.sdk.xap.operations
217

318
import com.expediagroup.sdk.core.http.Headers

xap-sdk/src/main/kotlin/com/expediagroup/sdk/xap/operations/GetActivityDetailsOperationParams.kt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* Copyright (C) 2025 Expedia, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.expediagroup.sdk.xap.operations
217

318
import com.expediagroup.sdk.core.http.Headers

xap-sdk/src/main/kotlin/com/expediagroup/sdk/xap/operations/GetActivityListingsOperation.kt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* Copyright (C) 2025 Expedia, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.expediagroup.sdk.xap.operations
217

318
import com.expediagroup.sdk.core.http.Headers

xap-sdk/src/main/kotlin/com/expediagroup/sdk/xap/operations/GetActivityListingsOperationParams.kt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* Copyright (C) 2025 Expedia, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.expediagroup.sdk.xap.operations
217

318
import com.expediagroup.sdk.core.http.Headers

xap-sdk/src/main/kotlin/com/expediagroup/sdk/xap/operations/GetCarDetailsOperation.kt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* Copyright (C) 2025 Expedia, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.expediagroup.sdk.xap.operations
217

318
import com.expediagroup.sdk.core.http.Headers

xap-sdk/src/main/kotlin/com/expediagroup/sdk/xap/operations/GetCarDetailsOperationParams.kt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* Copyright (C) 2025 Expedia, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.expediagroup.sdk.xap.operations
217

318
import com.expediagroup.sdk.core.http.Headers

xap-sdk/src/main/kotlin/com/expediagroup/sdk/xap/operations/GetCarsListingsOperation.kt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* Copyright (C) 2025 Expedia, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.expediagroup.sdk.xap.operations
217

318
import com.expediagroup.sdk.core.http.Headers

0 commit comments

Comments
 (0)