Skip to content

Commit dc47d33

Browse files
chore: Add minimal CI setup accommodating PRs on GitHub.
Signed-off-by: Michael Simons <michael.simons@neo4j.com>
1 parent f54768b commit dc47d33

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths-ignore:
8+
- 'README.md'
9+
- 'CONTRIBUTING.adoc'
10+
pull_request:
11+
paths-ignore:
12+
- 'README.md'
13+
- 'CONTRIBUTING.adoc'
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: 'Set up JDK'
20+
uses: actions/setup-java@v4
21+
with:
22+
distribution: zulu
23+
java-version: 8
24+
25+
- name: 'Cache Gradle packages'
26+
uses: actions/cache@v4
27+
with:
28+
path: |
29+
~/.gradle/caches
30+
~/.gradle/wrapper
31+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
32+
restore-keys: |
33+
${{ runner.os }}-gradle-
34+
35+
- name: 'Checkout'
36+
uses: actions/checkout@v4
37+
38+
- name: 'Build and test'
39+
run: |
40+
./gradlew build

0 commit comments

Comments
 (0)