ci: add checkstyle reporting, caching, checksums to workflows
This commit is contained in:
parent
d3d87c34e0
commit
793924c9ba
2 changed files with 30 additions and 8 deletions
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
|
@ -6,6 +6,10 @@ on:
|
|||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build LoChat
|
||||
|
|
@ -20,6 +24,7 @@ jobs:
|
|||
with:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
cache: 'gradle'
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v4
|
||||
|
|
@ -27,6 +32,13 @@ jobs:
|
|||
- name: Build & Test
|
||||
run: chmod +x gradlew && ./gradlew build --no-daemon
|
||||
|
||||
- name: Checkstyle Report
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: checkstyle-report
|
||||
path: build/reports/checkstyle/
|
||||
|
||||
- name: JaCoCo Report
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue