moviequotebot/.gitea/workflows/build_and_test.yml
Louis Vallat 0e582ceaec
All checks were successful
Build and test program / Build and test (push) Successful in 19s
feat: moved to gitea workflows for CI/CD
Signed-off-by: Louis Vallat <contact@louis-vallat.dev>
2024-09-08 17:49:27 +02:00

23 lines
656 B
YAML

name: "Build and test program"
on: push
jobs:
build:
name: "Build and test"
runs-on: java-bookworm
steps:
- name: Install gradle
run: |
wget https://services.gradle.org/distributions/gradle-8.10-bin.zip
mkdir /opt/gradle
unzip -d /opt/gradle gradle-8.10-bin.zip
echo PATH=$PATH:/opt/gradle/gradle-8.10/bin >> $GITHUB_ENV
- name: Check out repository code
uses: actions/checkout@v4
- name: Compile
run: gradle --build-cache compileJava
- name: Test
run: gradle --build-cache check
- name: Package
run: gradle --build-cache assemble