From d84b376a00877490adc05d1c0b22a7393e26d6bf Mon Sep 17 00:00:00 2001 From: Ryo Takeuchi Date: Thu, 30 Nov 2023 19:23:35 +0900 Subject: [PATCH] =?UTF-8?q?:green=5Fheart:=20Backend=20=E3=81=AE=20CI=20?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/backend.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/backend.yml diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml new file mode 100644 index 00000000..f25a00e5 --- /dev/null +++ b/.github/workflows/backend.yml @@ -0,0 +1,31 @@ +name: "Backend CI" + +on: + pull_request_target: + +# Cancel any current or previous job from the same PR +concurrency: + group: backend-${{ github.head_ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + with: + lfs: 'true' + + - uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: 17 + + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + + - name: Unit Tests + run: ./gradlew :app:backend:check + + - name: Build + run: ./gradlew :app:backend:buildFatJar