Skip to content

Commit

Permalink
Merge pull request #338 from Team-Sopetit/develop
Browse files Browse the repository at this point in the history
[CHORE] 실서버 배포
  • Loading branch information
thguss authored Aug 28, 2024
2 parents 8027c48 + c19d978 commit ad31196
Show file tree
Hide file tree
Showing 336 changed files with 6,162 additions and 7,350 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/CI.yml

This file was deleted.

52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: ci

on:
pull_request:
branches: [ "develop" ]

jobs:
build:
runs-on: ubuntu-22.04

steps:
- name: checkout
uses: actions/checkout@v3

- name: set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'

- name: create application.yaml
run: |
cd src/main/resources
echo "${{ secrets.APPLICATION_SECRET_YML }}" > ./application-secret.yml
working-directory: ${{ env.working-directory }}

- name: build
run: |
chmod +x gradlew
./gradlew build test
working-directory: ${{ env.working-directory }}
shell: bash

lint:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Execute checkstyleMain
run: ./gradlew clean checkstyleMain

- name: Execute checkstyleTest
run: ./gradlew clean checkstyleTest
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: deploy

on:
push:
branches: [ develop ]
release:
types:
- published

jobs:
build:
Expand Down Expand Up @@ -57,4 +58,4 @@ jobs:
run: aws deploy create-deployment --application-name sopetit-codedeploy
--deployment-config-name CodeDeployDefault.AllAtOnce
--deployment-group-name sopetit-group
--s3-location bucket=${{ secrets.AWS_BUCKET_NAME }},bundleType=zip,key=$GITHUB_SHA.zip
--s3-location bucket=${{ secrets.AWS_BUCKET_NAME }},bundleType=zip,key=$GITHUB_SHA.zip
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,7 @@ out/
.vscode/

### configuration ###
application-secret.yml
application-secret.yml

### JPAQueryFactory ###
generated
17 changes: 17 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id 'java'
id 'org.springframework.boot' version '3.2.1'
id 'io.spring.dependency-management' version '1.1.4'
id 'checkstyle'
}

group = 'com.soptie'
Expand All @@ -11,12 +12,21 @@ java {
sourceCompatibility = '17'
}

checkstyle {
maxWarnings = 0
configFile = file("checkstyle/naver-checkstyle-rules.xml")
configProperties = ["suppressionFile": "checkstyle/naver-checkstyle-suppressions.xml"]
}

configurations {
compileOnly {
extendsFrom annotationProcessor
}
}

compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'

repositories {
mavenCentral()
}
Expand Down Expand Up @@ -59,3 +69,10 @@ dependencies {
tasks.named('test') {
useJUnitPlatform()
}

tasks.withType(Checkstyle).configureEach {
reports {
xml.required = true
html.required = true
}
}
Loading

0 comments on commit ad31196

Please sign in to comment.