-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.17 KB
/
packy-ci.yml
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
39
40
41
42
43
44
45
name: packy API Server - CI
on:
pull_request:
branches:
- main
- develop
permissions:
contents: read
jobs:
CI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.ACTION_TOKEN }}
submodules: true
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run build Flyway Module
run: ./gradlew clean packy-flyway:build
- name: Run FlywayApplication
run: java -Dspring.profiles.active=${{ env.PROFILE }} -jar ./packy-flyway/build/libs/packy-flyway-0.0.1-SNAPSHOT.jar
env:
PROFILE: ${{ github.ref == 'refs/heads/main' && 'prod' || 'dev' }}
- name: Run build with Gradle Wrapper
run: ./gradlew clean build --parallel
- name: Add coverage to PR
uses: madrapps/[email protected]
with:
paths: ${{ github.workspace }}/packy-support/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml
token: ${{ secrets.ACTION_TOKEN }}