Skip to content

Add last release badge: Merge branch 'develop' #23

Add last release badge: Merge branch 'develop'

Add last release badge: Merge branch 'develop' #23

Workflow file for this run

name: Java CI Gradle build and test
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
# Get source code and config java
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: Setup Gradle
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
# Build project
- name: Build with Gradle Wrapper
run: ./gradlew build
# Test project
- name: Run tests
run: ./gradlew test
# Upload JaCoCo coverage report to Codecov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./build/reports/jacoco/test/jacocoTestReport.xml
fail_ci_if_error: true
verbose: true