Skip to content

Commit

Permalink
Merge pull request #53 from Stumeet/dev
Browse files Browse the repository at this point in the history
🔧 [STMT-146] PR시 테스트를 실행하도록 Workflow 추가 (#52)
  • Loading branch information
zxcv9203 authored Feb 28, 2024
2 parents 415642f + 01db0f1 commit dee74a0
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI triggered by PR

on:
pull_request:
branches:
- dev
- main

jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'

- name: Set environment variables
run: |
cd ./src/test/resources
echo "${{ secrets.ENV }}" > ./application-secret.properties
- name: Gradle Caching
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: test
run: |
chmod +x gradlew
./gradlew test

0 comments on commit dee74a0

Please sign in to comment.