Skip to content

Bump codecov/codecov-action from 5.0.2 to 5.0.4 #1306

Bump codecov/codecov-action from 5.0.2 to 5.0.4

Bump codecov/codecov-action from 5.0.2 to 5.0.4 #1306

Workflow file for this run

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 }}