-
Notifications
You must be signed in to change notification settings - Fork 11
36 lines (34 loc) · 977 Bytes
/
workflow-examples.yml
File metadata and controls
36 lines (34 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Workflow that runs on the examples projects.
# Triggered by pushes on the main branch (excluding tags).
# Build, test, run coverage analysis and release to Maven Central a final release.
name: Workflow on example projects
on:
push:
tags-ignore:
- '**'
jobs:
build-test:
strategy:
matrix:
project-working-dir: ["quarkus-mvc"]
name: Build and tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./examples/${{ matrix.project-working-dir }}
steps:
- uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: 'gradle'
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Lint
run: ./gradlew spotlessJavaCheck
- name: Build
run: ./gradlew build -x test
- name: Run tests
run: ./gradlew test