-
-
Notifications
You must be signed in to change notification settings - Fork 7
33 lines (33 loc) · 1.23 KB
/
build.yml
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
name: build
on: [push, pull_request, workflow_dispatch]
jobs:
build:
strategy:
fail-fast: false
matrix:
java: [8, 11, 17, 21]
name: Build with Java ${{ matrix.java }}
runs-on: ubuntu-22.04
steps:
- name: Checkout the Git repository
uses: actions/[email protected]
- name: Setup Java
uses: actions/[email protected]
with:
distribution: temurin
java-version: ${{ matrix.java }}
cache: maven
- name: Build the project
run: mvn -B clean install
- name: Get the project version
run: echo PROJECT_VERSION=$(mvn -B -Dexpression=project.version -DforceStdout -q help:evaluate) >>$GITHUB_ENV
- name: Build the "examples/simple-java" project
run: mvn -B -Dyaml-resource-bundle.version=${{ env.PROJECT_VERSION }} clean install
working-directory: examples/simple-java
- name: Build the "examples/simple-kotlin" project
run: mvn -B -Dyaml-resource-bundle.version=${{ env.PROJECT_VERSION }} clean install
working-directory: examples/simple-kotlin
- name: Upload the coverage report to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}