-
Notifications
You must be signed in to change notification settings - Fork 14
38 lines (33 loc) · 871 Bytes
/
ci.yml
File metadata and controls
38 lines (33 loc) · 871 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
37
38
name: CI Pipeline
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Cache Maven dependencies
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build and test everything
run: |
./mvnw checkstyle:check
./mvnw spotbugs:check
./mvnw clean test
./mvnw clean package -DskipTests
docker compose build app
docker compose up -d
sleep 30
curl -f http://localhost:8080/api/health || exit 1
docker compose down