Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
youKeon committed Jul 31, 2023
2 parents e1f5780 + e587929 commit 2606100
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

on:
push:
branches: ["dev"]

jobs:
backend-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: "temurin"

- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: backend/.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('backend/**/*') }}
restore-keys: ${{ runner.os }}-gradle-

- name: Grant Execute Permission For Gradlew
run: chmod +x backend/gradlew


- name: Test with Gradle
run: |
cd backend
./gradlew build --info
env:
JWT_SECRET: ${{ secrets.JWT_SECRET }}
GPT_TOKEN: ${{ secrets.GPT_TOKEN }}
JOB_KEY: ${{ secrets.JOB_KEY }}

- name: Backend Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: ${{ always() }}
with:
files: backend/build/test-results/**/*.xml

0 comments on commit 2606100

Please sign in to comment.