xiaoju-survey/.github/workflows/server-check.yml
2024-06-11 11:19:46 +08:00

38 lines
671 B
YAML

# Check
name: Server Check
on:
push:
branches:
- feature/server-java
- releases/server-java
pull_request:
branches:
- feature/server-java
- releases/server-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