Skip to content

refactor: capacity가 없을 경우 기본값을 정한다 #31

refactor: capacity가 없을 경우 기본값을 정한다

refactor: capacity가 없을 경우 기본값을 정한다 #31

name: backend-test
on:
pull_request:
branches:
- main
- develop
paths:
- backend/**
- .github/**
permissions:
contents: read
jobs:
test:
name: test-when-pull-request
runs-on: ubuntu-latest
environment: test
defaults:
run:
working-directory: ./backend
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- 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: Test with Gradle
run: ./gradlew test