Skip to content

Commit fae7665

Browse files
committed
add github action
1 parent 78c5eaf commit fae7665

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ko_fi: alexcheng1982
2+
github: alexcheng1982

.github/workflows/build.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up JDK
16+
uses: actions/setup-java@v3
17+
with:
18+
java-version: "21"
19+
distribution: "temurin"
20+
cache: maven
21+
- name: Build with Maven
22+
run: mvn --batch-mode --update-snapshots package

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ data: [Netflix data](https://github.com/neondatabase/postgres-sample-dbs?tab=rea
55

66
How to run:
77

8-
1. Download test data and import into a Postgres database.
9-
2. Update database connection in `application.yaml`.
10-
3. Start the server and
8+
1. Requires Java 21 to build and run.
9+
2. Download test data and import into a Postgres database.
10+
3. Update database connection in `application.yaml`.
11+
4. Start the server and
1112
use [Swagger UI](http://localhost:8080/swagger-ui/index.html) to run query.
1213

1314
Sample query:

0 commit comments

Comments
 (0)