Skip to content

Commit 3a9363a

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

File tree

2 files changed

+43
-4
lines changed

2 files changed

+43
-4
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
repository-plugin-check:
15+
if: github.repository == 'opensearch-project/OpenSearch'
16+
runs-on: ubuntu-latest
17+
continue-on-error: true
18+
timeout-minutes: 60
19+
steps:
20+
- uses: actions/checkout@v6
21+
22+
- name: Remove unnecessary files
23+
run: |
24+
sudo rm -rf /usr/share/dotnet
25+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
26+
27+
- name: Set up JDK 21
28+
uses: actions/setup-java@v5
29+
with:
30+
java-version: 21
31+
distribution: temurin
32+
cache: gradle
33+
34+
- name: Run bwcTestSnapshots
35+
run: ./gradlew bwcTestSnapshots
36+
37+
- name: Upload test results
38+
if: always()
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: bwc-test-snapshots-test-results
42+
path: bwc-test-snapshots/build/reports/tests/
43+
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)