style: fix coding style issues #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
on: | |
push: | |
paths-ignore: | |
- "docs/**" | |
- README.md | |
jobs: | |
linter: | |
runs-on: ubuntu-latest | |
steps: | |
- name: ποΈ Checkout | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
fetch-depth: 0 | |
- name: π MegaLinter | |
id: ml | |
uses: oxsecurity/megalinter@v7 | |
env: | |
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: π₯ Archive MegaLinter artifacts | |
if: success() || failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: MegaLinter reports | |
path: | | |
megalinter-reports | |
mega-linter.log | |
build: | |
needs: linter | |
runs-on: ubuntu-latest | |
steps: | |
- name: ποΈ Checkout | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
fetch-depth: 0 | |
- name: β Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: "22" | |
- name: π Setup Gradle | |
uses: gradle/gradle-build-action@v3 | |
- name: π Build | |
run: ./gradlew build --no-daemon | |
- name: π§ͺ Test | |
run: ./gradlew test --no-daemon |