Skip to content

Commit

Permalink
ci: test
Browse files Browse the repository at this point in the history
  • Loading branch information
cheleb committed Jun 4, 2024
1 parent e4b0e3a commit 12313a3
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 29 deletions.
66 changes: 37 additions & 29 deletions .github/workflows/reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,42 @@ on:
- '**/*.sbt'
- 'modules/**'
jobs:
reports:
if: ! ( startsWith(github.ref, 'renovate/') || github.event.pull_request.draft)
environment: Codecov
runs-on: ubuntu-latest
echoes:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: echoes debugs
uses: actions/script@v4
with:
fetch-depth: 0
- name: Set up JDK 22
uses: actions/setup-java@v4
with:
java-version: "22"
distribution: "zulu"
cache: sbt
- name: Run coverage test
# Scala 3 is not fully supported for coverage yet
run: sbt "++ 2.13; coverage; test; coverageReport; coverageAggregate"
- name: "Upload coverage to Codecov"
uses: "codecov/codecov-action@v4"
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
- name: Fix paths for SonarCloud
run: |
sed -i -e s,`pwd`,/github/workspace,g target/scala-2.13/scoverage-report/scoverage.xml
- name: SonarCloud scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
script: |
core.info("github.ref_name: ${{ github.head_ref }}")
# reports:
# if: ! ( startsWith(github.ref_name, 'renovate/') || github.event.pull_request.draft)
# environment: Codecov
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - name: Set up JDK 22
# uses: actions/setup-java@v4
# with:
# java-version: "22"
# distribution: "zulu"
# cache: sbt
# - name: Run coverage test
# # Scala 3 is not fully supported for coverage yet
# run: sbt "++ 2.13; coverage; test; coverageReport; coverageAggregate"
# - name: "Upload coverage to Codecov"
# uses: "codecov/codecov-action@v4"
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# fail_ci_if_error: true
# - name: Fix paths for SonarCloud
# run: |
# sed -i -e s,`pwd`,/github/workspace,g target/scala-2.13/scoverage-report/scoverage.xml
# - name: SonarCloud scan
# uses: sonarsource/sonarcloud-github-action@master
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3 changes: 3 additions & 0 deletions modules/zio-pravega/src/test/scala/ReleaseReader.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import io.pravega.client.ClientConfig

import zio.pravega.admin.PravegaReaderGroupManager

/**
* This program releases all readers in the reader group "a-reader-group".
*/
object ReleaseReader extends ZIOAppDefault {

private val clientConfig = ClientConfig.builder().build()
Expand Down

0 comments on commit 12313a3

Please sign in to comment.