-
Notifications
You must be signed in to change notification settings - Fork 53
46 lines (40 loc) · 1.17 KB
/
java-ci-lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
name: Check Java Code
on:
pull_request:
workflow_dispatch:
defaults:
run:
shell: bash
concurrency:
group: "${{ github.workflow }}/${{ github.ref }}"
cancel-in-progress: true
jobs:
code-style:
runs-on: ubuntu-latest
steps:
- name: Get Repository content
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Install devbox
uses: jetify-com/devbox-install-action@734088efddca47cf44ff8a09289c6d0e51b73218 # v0.12.0
with:
enable-cache: 'true'
- name: Make devbox shellenv available
run: |
eval "$(devbox shellenv)"
printenv >> "$GITHUB_ENV"
- name: Check Code Formatting
run: |
sh ./style-guide/google-format-ci-v0.1.sh
env:
GOOGLE_JAR_VERSION: 1.22.0
GOOGLE_JAR_NAME: google-java-format-1.22.0-all-deps.jar
- name: Checkstyle
run: |
pushd src/scheduler
mvn --no-transfer-progress jxr:jxr
mvn --no-transfer-progress checkstyle:checkstyle
popd
- name: Publish Results on Pull Request
run: |
go run src/fmt_chkstyle/format_checkstyle.go