Skip to content

Commit

Permalink
Merge pull request #136 from woowacourse-teams/BE/#dev-script
Browse files Browse the repository at this point in the history
[BE] CI 스크립트 수정
  • Loading branch information
kelly6bf authored Jul 26, 2024
2 parents 1a70aa4 + 3ce6a0f commit 748496a
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 56 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/be-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Coduo Backend CI

on:
pull_request:
branches: [ "BE/main", "BE/dev" ]

permissions: write-all
jobs:
build-and-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend
steps:
- name: checkout
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'

- name: Set up Test MySQL
uses: mirromutth/[email protected]
with:
host port: 3306
container port: 3306
mysql database: 'testdb'
mysql root password: testPw1234!

- name: Make test application.yml
run: |
rm -rf ./src/main/resources/application.yml
touch ./src/main/resources/application.yml
echo ${{ secrets.BE_TEST_YML }} | base64 --decode > ./src/main/resources/application.yml
shell: bash

- 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: Grant Execute Permission For Gradlew
run: chmod +x gradlew

- name: Build With Gradle
run: ./gradlew build -x test

- name: Running Test Code
run: ./gradlew --info test
56 changes: 0 additions & 56 deletions .github/workflows/be-dev-ci.yml

This file was deleted.

0 comments on commit 748496a

Please sign in to comment.