mirror of
https://gitee.com/devlive-community/datacap.git
synced 2024-12-14 09:20:49 +08:00
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
name: Before checker with maven
|
|
|
|
on:
|
|
push
|
|
|
|
jobs:
|
|
|
|
before_checker_style:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Maven Checker Style
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: '11'
|
|
distribution: 'temurin'
|
|
- run: chmod 755 ./mvnw
|
|
- run: ./mvnw clean install checkstyle:checkstyle -Dskip.npm -X
|
|
|
|
before_checker_bugs:
|
|
runs-on: ubuntu-latest
|
|
needs: before_checker_style
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Maven Checker Bugs
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: '11'
|
|
distribution: 'temurin'
|
|
- run: chmod 755 ./mvnw
|
|
- run: ./mvnw clean install findbugs:findbugs -Dskip.npm -X
|
|
|
|
before_checker_tests:
|
|
runs-on: ubuntu-latest
|
|
needs: before_checker_bugs
|
|
steps:
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Maven Checker Tests
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: '11'
|
|
distribution: 'temurin'
|
|
- run: chmod 755 ./mvnw
|
|
- run: ./mvnw clean install -Dfindbugs.skip -Dcheckstyle.skip -Dskip.npm -X
|