summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yaml
diff options
context:
space:
mode:
authorSho Sakuma <me@m1sk9.dev>2026-01-05 22:13:27 +0900
committerSho Sakuma <me@m1sk9.dev>2026-01-05 22:13:27 +0900
commit4fe9e26641990f0696ee1841b8e8577ed1eefe55 (patch)
tree258cff5e0554d758c26992bbc77aa1956411919f /.github/workflows/ci.yaml
downloadLunaticChat-4fe9e26641990f0696ee1841b8e8577ed1eefe55.tar.gz
LunaticChat-4fe9e26641990f0696ee1841b8e8577ed1eefe55.tar.bz2
LunaticChat-4fe9e26641990f0696ee1841b8e8577ed1eefe55.zip
first commit
Diffstat (limited to '.github/workflows/ci.yaml')
-rw-r--r--.github/workflows/ci.yaml41
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
new file mode 100644
index 0000000..b23385b
--- /dev/null
+++ b/.github/workflows/ci.yaml
@@ -0,0 +1,41 @@
+name: CI
+
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+ branches:
+ - main
+
+jobs:
+ build:
+ runs-on: ubuntu-24.04
+ permissions:
+ contents: read
+ pull-requests: write
+ issues: write
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v6
+
+ - name: Setup Development Environment
+ uses: jdx/mise-action@v3
+
+ - name: Setup Gradle
+ uses: gradle/actions/setup-gradle@v5
+
+ - name: Check ktlint
+ run: ./gradlew ktlintCheck --no-daemon
+
+ - name: Build with shadowJar
+ run: ./gradlew shadowJar --parallel --no-daemon
+
+ - name: Upload build artifact
+ uses: actions/upload-artifact@v6
+ if: success()
+ with:
+ name: LunaticChat-${{ github.sha }}
+ path: build/libs/*-all.jar
+ retention-days: 7