moviequotebot/.gitea/workflows/build_and_test.yml
Louis Vallat fc9933cbb8
Some checks failed
Build and test program / Build and test (push) Failing after 9s
feat: moved to gitea workflows for CI/CD
Signed-off-by: Louis Vallat <contact@louis-vallat.dev>
2024-09-08 17:44:50 +02:00

23 lines
659 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-6.6.1-bin.zip
mkdir /opt/gradle
unzip -d /opt/gradle gradle-6.6.1-bin.zip
echo PATH=$PATH:/opt/gradle/gradle-6.6.1/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