File tree Expand file tree Collapse file tree 2 files changed +45
-4
lines changed
Expand file tree Collapse file tree 2 files changed +45
-4
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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-
4238tasks. findByName(" test" )?. enabled = false
You can’t perform that action at this time.
0 commit comments