ci: add checkstyle job to CI workflow
This commit is contained in:
parent
702e54b5da
commit
4a4bbbc683
1 changed files with 23 additions and 0 deletions
|
@ -4,6 +4,29 @@ on:
|
|||
pull_request:
|
||||
|
||||
jobs:
|
||||
checkstyle:
|
||||
name: "Checkstyle Main"
|
||||
runs-on: "ubuntu-latest"
|
||||
container:
|
||||
image: "cimg/openjdk:21.0-node"
|
||||
steps:
|
||||
- name: "Checkout"
|
||||
uses: actions/checkout@v3
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-
|
||||
- name: "Prepare Gradle"
|
||||
run: gradle clean
|
||||
- name: "Check"
|
||||
run: gradle check
|
||||
- name: "Stop Gradle"
|
||||
run: gradle --stop
|
||||
|
||||
eslint:
|
||||
name: eslint
|
||||
runs-on: vps-4
|
||||
|
|
Reference in a new issue