Files
backend/.gitea/workflows/test.yaml
T
TakahashiNg 7cab9e44fa
Java CI with Maven / build-and-test (pull_request) Failing after 1m36s
ci: update script
2026-04-08 07:55:24 +00:00

54 lines
1.2 KiB
YAML

name: Java CI with Maven
on:
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: shogo82148/actions-setup-redis@v1
with:
redis-version: "7.x"
- name: Set up JDK
uses: actions/setup-java@v5
with:
distribution: "graalvm"
java-version: "25"
cache: "maven"
- uses: gerlero/apt-install@v1
with:
packages: build-essential zlib1g-dev docker.io docker-buildx
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build and Test all modules
run: |
./mvnw -B install \
-Dquarkus.container-image.push=false \
- name: Publish Test Report
uses: scacap/action-surefire-report@v1
if: failure()
with:
github_token: ${{ secrets.ACCESS_TOKEN }}