즐겨찾기 정보 장소와 유저마다 하나만 저장하기 #493
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pr-ci | |
on: | |
pull_request: | |
on: | |
- open | |
- synchronize | |
workflow_dispatch: # for manual trigger | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
permissions: | |
id-token: write | |
pull-requests: write | |
jobs: | |
backend-ci: | |
runs-on: ubuntu-latest | |
services: | |
postgresql: | |
image: postgis/postgis:14-3.4-alpine | |
ports: | |
- 15432:5432 | |
env: | |
POSTGRES_USER: test | |
POSTGRES_PASSWORD: test | |
POSTGRES_DB: scc_test | |
defaults: | |
run: | |
working-directory: app-server | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: adopt | |
java-version: 19 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
# https://github.com/actions/cache/blob/main/examples.md#java---gradle | |
- 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: Gradle Check | |
run: ./gradlew clean check | |
- uses: actions/upload-artifact@v3 | |
name: Upload Check Report If Failed | |
if: failure() | |
with: | |
name: test report | |
path: "**/build/reports" | |
retention-days: 1 | |
- name: Notify CI failure to PR | |
uses: thollander/actions-comment-pull-request@v2 | |
if: failure() | |
with: | |
message: | | |
:fire::fire::fire: Backend CI Failed. [github action link](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) :fire::fire::fire: |