32 lines
659 B
YAML
32 lines
659 B
YAML
name: Build & Test
|
|
|
|
on:
|
|
push:
|
|
branches: [main, master, develop]
|
|
pull_request:
|
|
branches: [main, master]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: eclipse-temurin:21-jdk
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: https://gitea.com/actions/checkout@v4
|
|
|
|
- name: Grant execute permission
|
|
run: chmod +x gradlew
|
|
|
|
- name: Build
|
|
run: ./gradlew build --no-daemon
|
|
|
|
- name: Test
|
|
run: ./gradlew test --no-daemon
|
|
|
|
- name: Upload artifact
|
|
uses: https://gitea.com/actions/upload-artifact@v3
|
|
with:
|
|
name: LoChat
|
|
path: build/libs/LoChat-*.jar
|