chore: disable SPELL_CSPELL and JAVA_PMD linters in mega-linter confi… #5
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 |