Skip to content

Commit 1b4c6bb

Browse files
authored
Create CI-INFRA.yml
1 parent 17c9bd4 commit 1b4c6bb

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/CI-INFRA.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI-INFRA
2+
3+
on:
4+
pull_request:
5+
branches: [ "infra-test" ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-22.04
10+
env:
11+
working-directory: linkmind
12+
13+
steps:
14+
- name: 체크아웃
15+
uses: actions/checkout@v3
16+
17+
- name: Set up JDK 17
18+
uses: actions/setup-java@v3
19+
with:
20+
distribution: 'corretto'
21+
java-version: '17'
22+
23+
- name: application.yaml 생성
24+
run: |
25+
cd src/main/resources
26+
echo "${{ secrets.APPLICATION_INFRA_TEST }}" > ./application.yaml
27+
working-directory: ${{ env.working-directory }}
28+
29+
- name: toaster-firebase-admin-sdk.json 생성
30+
run: |
31+
cd src/main/resources
32+
echo "${{ secrets.TOASTER_FIREBASE_ADMIN_SDK }}" > ./toaster-firebase-admin-sdk.json
33+
working-directory: ${{ env.working-directory }}
34+
35+
- name: 빌드
36+
run: |
37+
chmod +x gradlew
38+
./gradlew build -x test
39+
working-directory: ${{ env.working-directory }}
40+
shell: bash

0 commit comments

Comments
 (0)