From 9749e46856e732439be9dd0266950a22fa04033e Mon Sep 17 00:00:00 2001 From: wnsrl Date: Wed, 29 May 2024 14:09:33 +0900 Subject: [PATCH] test: git action test --- .github/workflows/server.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/server.yml diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml new file mode 100644 index 0000000..184f3ca --- /dev/null +++ b/.github/workflows/server.yml @@ -0,0 +1,34 @@ +name: Backend Deployment + +on: + push: + branches: + - 'master' + pull_request: + branches: + - 'master' + +jobs: + build: + name: spring boot build & deploy + runs-on: ubuntu-latest + + steps: + # 레포 불러오기 + - name: checkout Github Action + uses: actions/checkout@v4 + + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'temurin' + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build with Gradle + run : ./gradlew clean build --exclude-task test + + - name: test + run: ls -al \ No newline at end of file