From efdf225654249fc209b4ecbd4892cfa989864b30 Mon Sep 17 00:00:00 2001 From: sudoooooo Date: Tue, 11 Jun 2024 11:14:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/server-check.yml | 37 ++++++++++++++++++++++++++++++ .gitignore | 3 +++ 2 files changed, 40 insertions(+) create mode 100644 .github/workflows/server-check.yml diff --git a/.github/workflows/server-check.yml b/.github/workflows/server-check.yml new file mode 100644 index 00000000..9868e899 --- /dev/null +++ b/.github/workflows/server-check.yml @@ -0,0 +1,37 @@ +# Check +name: Server Check + +on: + push: + branches: + - feature/java + - releases/java + pull_request: + branches: + - feature/java + - releases/java + workflow_dispatch: + +jobs: + build: + name: Check + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Zulu JDK 8 + uses: actions/setup-java@v4 + with: + distribution: "zulu" + java-version: "8" + + - name: check with Maven + run: mvn pmd:check + + - name: checkstyle with Maven + run: mvn checkstyle:chek + + - name: test with Maven + run: mvn test diff --git a/.gitignore b/.gitignore index 4951c3df..8c2ec983 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,6 @@ */target /logs + +web/* +server/* \ No newline at end of file