summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yaml
diff options
context:
space:
mode:
authorSho Sakuma <me@m1sk9.dev>2026-01-20 20:36:37 +0900
committerSho Sakuma <me@m1sk9.dev>2026-01-20 20:36:37 +0900
commitba9353d7cd4e26526aa7f1850b4ccac60d5746a5 (patch)
treeca018374f7ba040b87b9888bc4f28365c7a38d3f /.github/workflows/ci.yaml
parent6e4a53b97891e3b2a69050936a182c0fe55b72d6 (diff)
downloadLunaticChat-ba9353d7cd4e26526aa7f1850b4ccac60d5746a5.tar.gz
LunaticChat-ba9353d7cd4e26526aa7f1850b4ccac60d5746a5.tar.bz2
LunaticChat-ba9353d7cd4e26526aa7f1850b4ccac60d5746a5.zip
ci: Add Test workflow
Diffstat (limited to '.github/workflows/ci.yaml')
-rw-r--r--.github/workflows/ci.yaml16
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