Skip to content

CWMSVue-594: Updated AssignedTimeSeries DTO #999

CWMSVue-594: Updated AssignedTimeSeries DTO

CWMSVue-594: Updated AssignedTimeSeries DTO #999

Workflow file for this run

name: Build cwms-data-api-client
on:
push:
pull_request:
branches:
- main
jobs:
build:
name: build and test
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4
- name: setup java
uses: actions/setup-java@v4
with:
java-version: '21'
java-package: jdk
distribution: 'temurin'
- name: build and test
id: thebuild
run: ./gradlew build --info --init-script init.gradle
- name: Setup .NET Core # Required to execute ReportGenerator
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.x
dotnet-quality: 'ga'
- name: ReportGenerator
uses: danielpalme/ReportGenerator-GitHub-Action@5.3.11
with:
reports: cwms-aaa-client/build/reports/jacoco/test/jacocoTestReport.xml;cwms-http-client/build/reports/jacoco/test/jacocoTestReport.xml;cwms-radar-client/build/reports/jacoco/test/jacocoTestReport.xml
targetdir: .github/coveragereport
reporttypes: Html;MarkdownSummaryGithub;Badges
- name: Upload coverage report artifact
uses: actions/upload-artifact@v4.4.3
with:
name: CoverageReport # Artifact name
path: .github/coveragereport # Directory containing files to upload
- name: Commit and push Badges
if: github.event_name != 'pull_request' && github.ref != 'refs/heads/main'
run: |
cd .github/coveragereport
if [[ `git status --porcelain badge_*coverage.svg` ]]; then
git config --global user.name 'builduser'
git config --global user.email 'builduser@rmanet.com'
git add badge_*coverage.svg
git commit -m "Autogenerated JaCoCo coverage badge" badge_*coverage.svg
git push
fi