From 423e4ca366adec9848e79511ea39ca35804d5bb3 Mon Sep 17 00:00:00 2001 From: jagaldol Date: Sun, 24 Dec 2023 00:57:25 +0900 Subject: [PATCH] chore: Create build test github action --- .github/workflows/build_test.yml | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build_test.yml diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml new file mode 100644 index 0000000..87a1be0 --- /dev/null +++ b/.github/workflows/build_test.yml @@ -0,0 +1,38 @@ +name: build test(Java - Gradle / Next - npm) + +on: + pull_request: + branches: + - "main" + +jobs: + spring-build-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: "17" + distribution: "temurin" + - name: Change to server directory + run: cd server + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build + + next-build-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Node 16 + uses: actions/setup-node@v2 + with: + node-version: "16" + - name: Change to client directory + run: cd cleint + - name: Install dependencies + run: npm install + - name: Build Next.js project + run: npm run build