Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ci 스크립트 작성 #99

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Run Test

on:
push:
branches:
- develop

jobs:
Run Test:
runs-on: ubuntu-latest
steps:
- name: checkout
- uses: actions/checkout@v4

- name: java setup
uses: actions/setup-java@v2
with:
distribution: 'corretto'
java-version: '21'

- name: setup application.yaml
run: |
mkdir -p src/test/resources
echo "${{ secrets.APPLICATION_TEST_YML }}" | base64 --decode > src/test/resources/application.yml
find src

- name: setup docker-compose.yaml
run: |
echo "${{ secrets.DOCKER_COMPOSE_YAML }}" | base64 --decode > docker-compose.yml

- name: test db setup(with docker)
run: docker-compose up -d

- name: make executable gradlew
run: chmod +x ./gradlew

- name: run test
- run: ./gradlew clean test




















16 changes: 0 additions & 16 deletions src/test/resources/application-test.yaml

This file was deleted.