datacap/.github/workflows/bofore_checker.yml

60 lines
1.6 KiB
YAML
Raw Normal View History

2022-09-17 15:49:36 +08:00
name: Before checker with maven
on:
push
jobs:
2022-09-20 18:02:24 +08:00
before_checker_loading:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- run: echo 'Before checker loading'
2022-09-17 15:49:36 +08:00
before_checker_style:
runs-on: ubuntu-latest
2022-09-20 18:02:24 +08:00
needs:
- before_checker_loading
2022-09-17 15:49:36 +08:00
steps:
2022-09-17 15:52:45 +08:00
- name: Checkout
uses: actions/checkout@v3
- name: Maven Checker Style
2022-09-17 15:49:36 +08:00
uses: actions/setup-java@v3
with:
2022-09-30 00:01:23 +08:00
java-version: '8'
2022-09-17 15:49:36 +08:00
distribution: 'temurin'
- run: chmod 755 ./mvnw
2022-10-09 21:11:15 +08:00
- run: ./mvnw clean install checkstyle:checkstyle -Dfindbugs.skip -Dgpg.skip -Dskip.npm -DskipTests=true
2022-09-17 15:49:36 +08:00
before_checker_bugs:
runs-on: ubuntu-latest
2022-09-20 18:02:24 +08:00
needs:
- before_checker_loading
2022-09-17 15:49:36 +08:00
steps:
2022-09-17 15:52:45 +08:00
- name: Checkout
uses: actions/checkout@v3
- name: Maven Checker Bugs
2022-09-17 15:49:36 +08:00
uses: actions/setup-java@v3
with:
2022-09-30 00:01:23 +08:00
java-version: '8'
2022-09-17 15:49:36 +08:00
distribution: 'temurin'
- run: chmod 755 ./mvnw
2022-10-09 21:11:15 +08:00
- run: ./mvnw clean install findbugs:findbugs -Dcheckstyle.skip -Dgpg.skip -Dskip.npm -DskipTests=true
2022-09-17 15:49:36 +08:00
2022-09-20 18:02:24 +08:00
before_checker_package:
runs-on: ubuntu-latest
needs:
- before_checker_loading
- before_checker_style
- before_checker_bugs
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Maven Checker Package
uses: actions/setup-java@v3
with:
2022-09-30 00:01:23 +08:00
java-version: '8'
2022-09-20 18:02:24 +08:00
distribution: 'temurin'
- run: chmod 755 ./mvnw
2022-10-09 21:11:15 +08:00
- run: ./mvnw clean install package -Dfindbugs.skip -Dgpg.skip -Dcheckstyle.skip -DskipTests=true