diff options
Diffstat (limited to '.github/workflows/ci.yaml')
| -rw-r--r-- | .github/workflows/ci.yaml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 987ceb4..6cab034 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,6 +11,10 @@ on: jobs: build_plugin: runs-on: ubuntu-24.04 + permissions: + contents: read + pull-requests: write + issues: write steps: - name: Checkout repository uses: actions/checkout@v6 @@ -24,6 +28,18 @@ jobs: - name: Check ktlint run: ./gradlew ktlintCheck --no-daemon + - name: Run tests + run: ./gradlew test --no-daemon + continue-on-error: true + + - name: Post test results to PR + if: github.event_name == 'pull_request' && always() + env: + GH_TOKEN: ${{ github.token }} + GITHUB_REPOSITORY: ${{ github.repository }} + GITHUB_REF: ${{ github.ref }} + run: .github/scripts/post-test-results.sh + - name: Build with shadowJar run: ./gradlew :platform-paper:shadowJar --parallel --no-daemon |
