Merge pull request #337 from akkinoc/dependabot/github_actions/codeco… #1308
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |