Make workflows work on GitHub and Gitea
Some checks failed
Dev Verify / verify (push) Failing after 26s

This commit is contained in:
2026-04-06 17:38:21 -05:00
parent 43630597dd
commit 988c2338fd
4 changed files with 142 additions and 43 deletions

View File

@@ -12,24 +12,18 @@ on:
jobs:
verify:
runs-on: ubuntu-latest
container:
image: gradle:8.11.1-jdk21
env:
GITEA_TOKEN: ${{ github.token }}
GITEA_REPO_URL: ${{ github.server_url }}/${{ github.repository }}.git
steps:
- name: Prepare source
shell: bash
run: |
set -euo pipefail
- name: Check out
uses: actions/checkout@v4
if [ ! -f build.gradle ]; then
git -c http.extraHeader="Authorization: token ${GITEA_TOKEN}" \
clone --depth 1 "${GITEA_REPO_URL}" .
fi
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Verify
shell: bash
run: |
set -euo pipefail
gradle --no-daemon compileClientJava
bash ./gradlew --no-daemon compileClientJava