Update metadata experiment with seed #11
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: | |
pull_request: | |
branches: [master] | |
push: | |
branches: [master] | |
jobs: | |
build: | |
name: Build (Java ${{ matrix.java }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
java: [11, 17] | |
include: | |
- os: windows-latest | |
java: 17 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.java }} | |
- name: Build with Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: build codeCoverageReport | |
# Only write to the cache for builds on the 'main' branch. | |
# Builds on other branches will only read existing entries from the cache. | |
cache-read-only: ${{ github.ref != 'refs/heads/main' }} | |
- name: Publish report | |
if: always() | |
uses: mikepenz/[email protected] | |
with: | |
check_name: test (Java ${{ matrix.java }}) | |
report_paths: '**/build/test-results/test/TEST-*.xml' | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload artifacts | |
if: always() | |
continue-on-error: true # See https://github.com/actions/upload-artifact/issues/270 | |
uses: actions/upload-artifact@v3 | |
with: | |
name: reports-${{ matrix.os }}-jdk${{ matrix.java }} | |
path: | | |
./**/build/reports/**/* | |
./**/build/test-results/**/* | |
retention-days: 5 | |
- name: Upload code coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./build/reports/jacoco/codeCoverageReport/codeCoverageReport.xml |