ci: add pr agent workflow for AI pr-reviewer #25
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/actions/setup-gradle@v4 | |
- name: π Compile and Test | |
run: ./gradlew build --no-daemon |