Skip to content

Commit

Permalink
[Fix] 테스트 버그 수정 (#32)
Browse files Browse the repository at this point in the history
* fix: 테스트 오류 수정

* feat: pull request마다 테스트 진행하는 기능 추가
  • Loading branch information
birdieHyun authored Oct 26, 2023
1 parent 7292c7b commit 1977d3c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/be-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Upbrella DEV CI
name: Yonsei-Golf DEV CI

on:
push:
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/pull-request-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Yonsei-Golf DEV CI

on:
pull_request:
branches: [ "main" ]

env:
WORKING_DIRECTORY: ./

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: checkout
uses: actions/checkout@v3

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

- name: Set application properties
run: |
touch src/main/resources/application.properties
echo "${{ secrets.APPLICATION_PROPERTIES }}" > src/main/resources/application.properties
- name: Build with Gradle
run: |
chmod +x gradlew
./gradlew clean build
env:
WORKING_DIRECTORY: ${{ env.WORKING_DIRECTORY }}
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ void getApplicationTest() throws Exception {
given(applyService.getApplicationResults(any(), any(), any())).willReturn(mockPage);

// when & then
mockMvc.perform(get("/admin/application")
mockMvc.perform(get("/admin/forms")
.param("documentPass", "true")
.param("finalPass", "false")
.param("page", "0")
Expand Down

0 comments on commit 1977d3c

Please sign in to comment.