ci: add checkstyle reporting, caching, checksums to workflows
This commit is contained in:
parent
d3d87c34e0
commit
793924c9ba
2 changed files with 30 additions and 8 deletions
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
|
@ -6,6 +6,10 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build LoChat
|
name: Build LoChat
|
||||||
|
|
@ -20,6 +24,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
java-version: '21'
|
java-version: '21'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
cache: 'gradle'
|
||||||
|
|
||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/actions/setup-gradle@v4
|
uses: gradle/actions/setup-gradle@v4
|
||||||
|
|
@ -27,6 +32,13 @@ jobs:
|
||||||
- name: Build & Test
|
- name: Build & Test
|
||||||
run: chmod +x gradlew && ./gradlew build --no-daemon
|
run: chmod +x gradlew && ./gradlew build --no-daemon
|
||||||
|
|
||||||
|
- name: Checkstyle Report
|
||||||
|
if: always()
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: checkstyle-report
|
||||||
|
path: build/reports/checkstyle/
|
||||||
|
|
||||||
- name: JaCoCo Report
|
- name: JaCoCo Report
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|
|
||||||
26
.github/workflows/release.yml
vendored
26
.github/workflows/release.yml
vendored
|
|
@ -22,6 +22,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
java-version: '21'
|
java-version: '21'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
cache: 'gradle'
|
||||||
|
|
||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/actions/setup-gradle@v4
|
uses: gradle/actions/setup-gradle@v4
|
||||||
|
|
@ -29,25 +30,34 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: chmod +x gradlew && ./gradlew clean build --no-daemon
|
run: chmod +x gradlew && ./gradlew clean build --no-daemon
|
||||||
|
|
||||||
|
- name: Generate Checksums
|
||||||
|
run: |
|
||||||
|
cd build/libs/
|
||||||
|
sha256sum LoChat-*.jar > LoChat-${GITHUB_REF_NAME#v}.jar.sha256
|
||||||
|
cat LoChat-${GITHUB_REF_NAME#v}.jar.sha256
|
||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
name: "LoChat ${{ github.ref_name }}"
|
name: "LoChat ${{ github.ref_name }}"
|
||||||
body: |
|
body: |
|
||||||
## 🚀 LoChat ${{ github.ref_name }}
|
## LoChat ${{ github.ref_name }}
|
||||||
|
|
||||||
- Сервер: Paper/Folia 1.21+
|
**Server:** Paper/Folia 1.21+ · **Java:** 21
|
||||||
- Java: 21
|
|
||||||
|
|
||||||
### 📦 Установка
|
### Installation
|
||||||
Скопируйте `LoChat-*.jar` в папку `plugins/` сервера и перезагрузите.
|
Copy the `LoChat-*.jar` into your server's `plugins/` folder and restart.
|
||||||
|
|
||||||
### 🔧 Зависимости (опционально)
|
### Optional Dependencies
|
||||||
- PlaceholderAPI
|
- PlaceholderAPI
|
||||||
- PlayerPoints
|
- PlayerPoints
|
||||||
- LuckPerms
|
- LuckPerms
|
||||||
- SkinsRestorer
|
- SkinsRestorer
|
||||||
|
- LibertyBans
|
||||||
|
|
||||||
Полный список изменений: [Commits](https://github.com/loki5512344/LoChat/commits/main)
|
### Changelog
|
||||||
files: build/libs/LoChat-*.jar
|
See the full list of changes below.
|
||||||
|
files: |
|
||||||
|
build/libs/LoChat-*.jar
|
||||||
|
build/libs/LoChat-*.sha256
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue