Skip to content

Commit 7b36823

Browse files
committed
Run bwcTestSnapshots as separate GitHub Action
Signed-off-by: Andrew Ross <andrross@amazon.com>
1 parent 568189b commit 7b36823

File tree

2 files changed

+45
-4
lines changed

2 files changed

+45
-4
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Backward Compatibility Tests
2+
on:
3+
push:
4+
pull_request:
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
8+
cancel-in-progress: true
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
bwc-test-snapshots:
15+
if: github.repository == 'opensearch-project/OpenSearch'
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 60
18+
steps:
19+
- uses: actions/checkout@v6
20+
21+
- name: Remove unnecessary files
22+
run: |
23+
sudo rm -rf /usr/share/dotnet
24+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
25+
26+
- name: Set up JDK 21
27+
uses: actions/setup-java@v5
28+
with:
29+
java-version: 21
30+
distribution: temurin
31+
cache: gradle
32+
33+
- name: Set JAVA21_HOME
34+
run: echo "JAVA21_HOME=${{ steps.java21.outputs.path }}" >> $GITHUB_ENV
35+
36+
- name: Run bwcTestSnapshots
37+
run: ./gradlew bwcTestSnapshots
38+
39+
- name: Upload test results
40+
if: always()
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: bwc-test-snapshots-test-results
44+
path: bwc-test-snapshots/build/reports/tests/
45+
retention-days: 7

gradle/bwc-test.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,4 @@ tasks.withType(Test).configureEach {
3535
onlyIf { project.bwc_tests_enabled }
3636
}
3737

38-
tasks.named("check").configure {
39-
dependsOn(bwcTestSnapshots)
40-
}
41-
4238
tasks.findByName("test")?.enabled = false

0 commit comments

Comments
 (0)