-
Notifications
You must be signed in to change notification settings - Fork 4
57 lines (47 loc) · 1.7 KB
/
intergration-config.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
46
47
48
49
50
51
52
53
54
55
56
57
name: Java CI with Gradle!
on:
pull_request:
branches: ["develop"]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'corretto'
cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Redis Server in GitHub Actions
uses: supercharge/[email protected]
- name: Build with Gradle
run: ./gradlew build -x test -i
- name: Test with Gradle
run: |
./gradlew -Dspring.profiles.active=test \
-Dcloud.aws.credentials.access-key=${{ secrets.S3_AWS_ACCESS_KEY_ID }} \
-Dcloud.aws.credentials.secret-key=${{ secrets.S3_AWS_SECRET_ACCESS_KEY }} \
-Dcloud.aws.region.static=${{ secrets.AWS_REGION }} \
-Dcloud.aws.s3.bucket=${{ secrets.AWS_S3_BUCKET }} \
-Dcloud.aws.cloudfront.domain=${{ secrets.AWS_CLOUDFRONT_DOMAIN }} \
-Dpayment.toss.client-key=${{ secrets.TEST_CLIENT_KEY }} \
-Dpayment.toss.security-key=${{ secrets.TEST_SECRET_KEY }} \
-Dspring.data.redis.host=${{ secrets.TEST_REDIS_HOST }} \
-Dspring.data.redis.port=${{ secrets.TEST_REDIS_PORT }} \
test -i