Skip to content

Commit

Permalink
Merge pull request #117 from naver/develop
Browse files Browse the repository at this point in the history
Release v1.1.2-p1

Reviewed-by: @taeyeon-Kim
  • Loading branch information
sohyun-ku authored Feb 1, 2024
2 parents 9300ad7 + 2ee916c commit 85c7c2f
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 4 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,38 @@ jobs:
with:
name: scavenger-api
path: scavenger-api/build/test-results
scavenger-schema:
runs-on: ubuntu-latest
services:
database:
image: mysql:8.0.28
ports:
- 3306:3306
env:
MYSQL_ROOT_PASSWORD: scavenger
MYSQL_DATABASE: scavenger
MYSQL_USER: scavenger
MYSQL_PASSWORD: scavenger
options: >-
--health-cmd "mysqladmin ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- 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: Build with Gradle
run: SPRING_PROFILES_ACTIVE=mysql ./gradlew :scavenger-collector:clean scavenger-collector:test --tests ScavengerCollectorApplicationTest
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
distribution: 'zulu'
java-version: '11'
- name: Extract tag version
run: echo "tag=$(echo '${{ github.ref_name }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')" >> $GITHUB_OUTPUT
run: echo "tag=$(echo '${{ github.ref_name }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}(-p[0-9]+)?')" >> $GITHUB_OUTPUT
id: extract_tag_version
- name: Build project
run: ./gradlew clean build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
token: ${{ secrets.RELEASE_ACTIONS_TOKEN }}
- name: Extract version
run: echo "version=$(echo '${{ github.event.pull_request.title }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')" >> $GITHUB_OUTPUT
run: echo "version=$(echo '${{ github.event.pull_request.title }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}(-p[0-9]+)?')" >> $GITHUB_OUTPUT
id: extract_version
- name: Set git config
run: |
Expand Down
2 changes: 2 additions & 0 deletions doc/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ If you've built your own MySQL, follow the steps below.
CREATE DATABASE scavenger;
```
4. Use the `-D` option to set the following four properties.
- `spring.profiles.active=mysql`
- `spring.datasource.url={mysql url}`
- `spring.datasource.username={mysql user name}`
- `spring.datasource.password={mysql password}`
Expand Down Expand Up @@ -111,6 +112,7 @@ If you've built your own MySQL, follow the steps below.
CREATE DATABASE scavenger;
```
4. Use the `-D` option to set the following four properties.
- `spring.profiles.active=mysql`
- `spring.datasource.url={mysql url}`
- `spring.datasource.username={mysql user name}`
- `spring.datasource.password={mysql password}`
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.navercorp.scavenger

import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest

@SpringBootTest
class ScavengerCollectorApplicationTest {
@Test
fun contextLoads() {
}
}
6 changes: 6 additions & 0 deletions scavenger-collector/src/test/resources/application-mysql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
spring:
datasource:
url: jdbc:mysql://localhost:3306/scavenger
username: scavenger
password: scavenger
driver-class-name: com.mysql.cj.jdbc.Driver
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
--changeset scavenger:3
--liquibase formatted sql

ALTER TABLE snapshot_nodes MODIFY signature TEXT;
--changeset scavenger:5

ALTER TABLE snapshot_nodes MODIFY COLUMN signature TEXT;

0 comments on commit 85c7c2f

Please sign in to comment.