Skip to content

feat: Github Action 실패 감지 기능 추가 #28

feat: Github Action 실패 감지 기능 추가

feat: Github Action 실패 감지 기능 추가 #28

name: get-p-server CI
on:
pull_request:
branches: [ main, release/*, develop ]
jobs:
test:
environment: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Create .env.test file
run: |
touch .env.test
echo "${{ secrets.ENV }}" >> .env.test
- name: Cache Gradle packages
uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }}
- name: Test with Gradle
run: ./test.sh