-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 779 Bytes
/
ci.yml
File metadata and controls
35 lines (28 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Java CI with Maven
on:
push:
branches:
- master # Trigger only on push to master branch (e.g., after merging a PR)
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '21' # Or 11, 21, etc.
distribution: 'temurin' # Recommended distribution
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build and test with Maven
run: mvn test -Dtest=BtreeBenchmark