-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (35 loc) · 940 Bytes
/
spotless.yml
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
name: Spotless Linter
on:
push:
jobs:
lint:
runs-on: ubuntu-latest
env:
MAVEN_USERNAME: continuousintegration-oviva
MAVEN_PASSWORD: ${{ secrets.MAVEN_REPO_TOKEN }}
permissions:
contents: read
packages: read
checks: write
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
server-id: github
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
cache: 'maven'
- name: run spotless
id: spotless
run: mvn -B spotless:check
- name: check spotless
if: always()
uses: oviva-ag/checks-action@v1.2.0
with:
name: Check spotless output
token: ${{ secrets.GITHUB_TOKEN }}
conclusion: ${{ steps.spotless.outcome }}