-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (41 loc) · 1.38 KB
/
notification-pr-check-prod.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
# This is a basic workflow to help you get started with Actions
name: notification-pr-check-prod
# Controls when the workflow will run
on:
pull_request:
branches: [ main ]
paths:
- hous-notification/**
- hous-core/**
- hous-common/**
- hous-external/**
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: create secret files
working-directory: hous-notification/src/main/resources
run: |
touch application.yml
touch application-prod.yml
echo "${{ secrets.NOTIFICATION_YML }}" >> application.yml
echo "${{ secrets.NOTIFICATION_PROD_YML }}" >> application-prod.yml
mkdir firebase
touch ./firebase/firebase_service_key.json
echo "${{ secrets.FIREBASE_SERVICE_KEY_JSON }}" >> ./firebase/firebase_service_key.json
sed -i 's/#/"/g' ./firebase/firebase_service_key.json
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '11'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
shell: bash
# - name: Test with Gradle
# run: ./gradlew test
- name: Build with Gradle
run: ./gradlew hous-notification:bootJar -x test
shell: bash