Skip to content

Commit 94a2649

Browse files
authored
Merge pull request #2 from SpecialThing44/build-workflow
Build workflow
2 parents d26cb36 + 77991ff commit 94a2649

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Java CI with Gradle
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Set up JDK 8
13+
uses: actions/setup-java@v4
14+
with:
15+
java-version: '8'
16+
distribution: 'corretto'
17+
cache: gradle
18+
- name: Build with Makefile
19+
run: make build && make test && make untested-zip
20+
- name: Upload logs
21+
if: failure()
22+
uses: actions/upload-artifact@v4
23+
with:
24+
name: ${{ inputs.log-name || 'logs' }}
25+
path: /home/runner/work/geequel-shell/geequel-shell/geequel-shell/build/reports/tests/test/

geequel-shell/src/test/java/org/neo4j/shell/MainTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ public void printsVersionAndExits() {
399399
ArgumentCaptor<String> argument = ArgumentCaptor.forClass(String.class);
400400

401401
verify(printStream).println(argument.capture());
402-
assertTrue(argument.getValue().matches("Geequel-Shell \\d+\\.\\d+\\.\\d+.*"));
402+
assertTrue(argument.getValue().matches("Geequel-Shell ( \\d+\\.\\d+\\.\\d+.*)?"));
403403
}
404404

405405
@Test

0 commit comments

Comments
 (0)