moviequotebot/.gitea/workflows/build_and_test.yml

23 lines
659 B
YAML
Raw Normal View History

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