mosenioring/back001/.forgejo/workflows/backend-ci.yml

39 lines
867 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: backend-ci
on:
push:
paths:
- "**/*.kt"
- "**/*.java"
- "**/*.gradle"
- "**/*.gradle.kts"
- "gradlew"
- "gradle/**"
- ".forgejo/workflows/backend-ci.yml"
pull_request:
jobs:
test-and-build:
runs-on: docker
container:
image: gradle:8.7-jdk21
steps:
- uses: actions/checkout@v4
# (Opcjonalnie) cache Gradle przyspiesza mocno kolejne buildy
- uses: actions/cache@v4
with:
path: |
/home/gradle/.gradle/caches
/home/gradle/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
gradle-${{ runner.os }}-
- name: Test
run: ./gradlew test --no-daemon
- name: Build
run: ./gradlew build --no-daemon