-
Notifications
You must be signed in to change notification settings - Fork 5
62 lines (51 loc) · 1.52 KB
/
ci.yml
File metadata and controls
62 lines (51 loc) · 1.52 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Java CI with Gradle V0.1
on:
pull_request:
branches: [ develop ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- name: Set up DataHub with Docker
run: |
echo "${{ secrets.CI_DOCKER_COMPOSE }}" > docker-compose.yml
docker-compose up -d
docker ps
- name: Test domain-mysql with Gradle
run: |
cd domain-mysql
chmod +x ./gradlew
./gradlew test
- name: Set up domain-mongodb test application.yml
uses: microsoft/variable-substitution@v1
with:
files: ./domain-mongodb/src/test/resources/application.yml
env:
jasypt.password: ${{ secrets.JASYPT_PASSWORD }}
- name: Test domain-mongodb with Gradle
run: |
cd domain-mongodb
chmod +x ./gradlew
./gradlew test
- name: Set up member-api application-common.yml
uses: microsoft/variable-substitution@v1
with:
files: ./member-api/src/main/resources/application-common.yml
env:
jasypt.password: ${{ secrets.JASYPT_PASSWORD }}
- name: Build member-api with Gradle
run: |
cd member-api
chmod +x ./gradlew
./gradlew build