From a1e39808ce322e53e23f3698ba0b122b86a8f2d5 Mon Sep 17 00:00:00 2001 From: Dltmd202 Date: Wed, 19 Jun 2024 21:53:01 +0900 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20ci=EB=A5=BC=20=EC=9C=84=ED=95=9C?= =?UTF-8?q?=20github=20action=20=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20?= =?UTF-8?q?=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..2b8dba35 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +name: 'CI' + +on: + push: + branches: + - 'main' + - 'develop' + pull_request: + branches: + - 'main' + - 'develop' + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4.1.0 + + - name: Set up JDK ${{ matrix.java-version }} + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: ${{ matrix.java-version }} + + - name: Cache Gradle packages + uses: actions/cache@v3.3.2 + with: + path: ~/.gradle/caches + 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: Build with Gradle + run: ./gradlew build + + - name: Run tests + run: ./gradlew test \ No newline at end of file From e3a642d789e0bf5bc57818950722cc57d02da9e9 Mon Sep 17 00:00:00 2001 From: Dltmd202 Date: Wed, 19 Jun 2024 22:04:58 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20ci=20=EC=8A=A4=ED=81=AC=EB=A6=BD?= =?UTF-8?q?=ED=8A=B8=20jdk=20=EB=B2=84=EC=A0=84=20=EB=AA=85=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2b8dba35..0bd6fc31 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,11 +17,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v4.1.0 - - name: Set up JDK ${{ matrix.java-version }} + - name: Set up JDK 17 uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: ${{ matrix.java-version }} + java-version: 17 - name: Cache Gradle packages uses: actions/cache@v3.3.2