work with img section in ci, test stage added

This commit is contained in:
Mirco 2024-07-09 13:55:39 +02:00
parent 6c0ef48a9d
commit bdcbc3ebdc

View file

@ -1,14 +1,24 @@
stages:
- test
- build
# - test
build:
stage: build
img: &img
image: openjdk:22-jdk-slim
before_script:
- apt-get update && apt-get -qqy upgrade
test:
<<: *img
stage: test
script:
- ./gradlew test
build:
<<: *img
stage: build
script:
- ./gradlew clean build -Pvaadin.productionMode
after_script:
echo "_____________end_________________"