Skip to content

[BE] 액세스 코드 중복 검증 #31

[BE] 액세스 코드 중복 검증

[BE] 액세스 코드 중복 검증 #31

Workflow file for this run

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