27 lines
722 B
YAML
27 lines
722 B
YAML
name: Build & Test
|
|
|
|
on:
|
|
push:
|
|
branches: [main, master, develop]
|
|
pull_request:
|
|
branches: [main, master]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
git clone --depth 1 https://oauth2:${{ secrets.RELEASE_TOKEN }}@git.lokili.xyz/${{ gitea.repository }}.git .
|
|
|
|
- name: Setup Java 21
|
|
run: |
|
|
curl -sL https://download.java.net/java/GA/jdk21.0.2/f2283984656d49d69e91c558476027ac/13/GPL/openjdk-21.0.2_linux-x64_bin.tar.gz | tar xz
|
|
|
|
- name: Build & Test
|
|
run: |
|
|
export JAVA_HOME=$PWD/jdk-21.0.2
|
|
export PATH=$JAVA_HOME/bin:$PATH
|
|
chmod +x gradlew
|
|
./gradlew build test --no-daemon
|