-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 843 Bytes
/
ci.yaml
File metadata and controls
36 lines (31 loc) · 843 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
36
name: HQL CI with Gradle
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout git
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Build and run application
working-directory: sample-app
run: |
sh ../db/start_postgres.sh
./gradlew build
nohup java -jar -Dspring.profiles.active=demo build/libs/sample-app.jar &
sleep 1
- name: Run jest integration tests
working-directory: tutorial+test
run: |
npm install
npm run test