Skip to content

Commit de5bb5a

Browse files
committed
7903857: Include test run in GitHub Actions workflow
Reviewed-by: prappo, jpai
1 parent 83e4d30 commit de5bb5a

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Test ApiDiff
1+
name: Build and Test APIDiff
22

33
on:
44
push:
@@ -14,17 +14,17 @@ jobs:
1414
steps:
1515
- name: 'Check out repository'
1616
uses: actions/checkout@v4
17-
with:
18-
fetch-depth: 1
1917

2018
- name: 'Set up Java Development Kit'
21-
uses: oracle-actions/setup-java@v1
19+
uses: actions/setup-java@v4
2220
with:
23-
website: oracle.com
24-
release: 17
21+
distribution: 'oracle'
22+
java-version: 17
23+
24+
- name: 'Build APIDiff'
25+
shell: bash
26+
run: bash make/build.sh
2527

26-
- name: 'Build ApiDiff'
28+
- name: 'Self-test APIDiff'
2729
shell: bash
28-
run: |
29-
java --version
30-
bash make/build.sh
30+
run: bash make/build.sh --skip-download -- test

test/junit/JUnitTests.gmk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ $(BUILDTESTDIR)/JUnitTests.ok: \
4141
$(RM) $(@:%.ok=%/work) $(@:%.ok=%/report)
4242
$(MKDIR) -p $(@:%.ok=%/work) $(@:%.ok=%/report)
4343
cd $(@:%.ok=%/work) ; \
44-
set -o pipefail ; \
4544
$(JAVA) \
4645
$(JUnitTest.add-exports) \
4746
-jar $(JUNIT_JAR) \

0 commit comments

Comments
 (0)