Skip to content

spark 3.5.5

spark 3.5.5 #147

Workflow file for this run

#
# Copyright 2021 ABSA Group Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: JaCoCo report
on:
pull_request:
branches: [ master ]
types: [ opened, edited, synchronize, reopened ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Scala
uses: olafurpg/setup-scala@v10
with:
java-version: "[email protected]"
- name: Build and run tests
run: sbt jacoco
- name: Add coverage to PR for scala 2.11 and spark 2.4
id: jacoco211
uses: madrapps/[email protected]
with:
# paths: ${{ github.workspace }}/spark-commons/target/spark2.4-jvm-2.11/jacoco/report/jacoco.xml
paths: ${{ github.workspace }}/spark-commons/spark2.4-jvm-2.11/jacoco/report/jacoco.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 0.0
min-coverage-changed-files: 80.0
title: JaCoCo code coverage report - scala:2.11 - spark:2.4
update-comment: true
- name: Get the Coverage info
run: |
echo "Total coverage ${{ steps.jacoco211.outputs.coverage-overall }}"
echo "Changed Files coverage ${{ steps.jacoco211.outputs.coverage-changed-files }}"
- name: Add coverage to PR for scala 2.12 and spark 3.3
id: jacoco212
uses: madrapps/[email protected]
with:
# paths: ${{ github.workspace }}/spark-commons/target/spark3-jvm-2.12/jacoco/report/jacoco.xml
paths: ${{ github.workspace }}/spark-commons/spark3-jvm-2.12/jacoco/report/jacoco.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 0.0
min-coverage-changed-files: 80.0
title: JaCoCo code coverage report - scala:2.12 - spark:3.3
update-comment: true
- name: Get the Coverage info
run: |
echo "Total coverage ${{ steps.jacoco212.outputs.coverage-overall }}"
echo "Changed Files coverage ${{ steps.jacoco212.outputs.coverage-changed-files }}"
- name: Fail PR if changed files coverage is less than 80%
if: ${{ steps.jacoco211.outputs.coverage-changed-files < 80.0 }}
uses: actions/github-script@v6
with:
script: |
core.setFailed('Changed files coverage is less than 80%!')
- name: Fail PR if changed files coverage is less than 80%
if: ${{ steps.jacoco212.outputs.coverage-changed-files < 80.0 }}
uses: actions/github-script@v6
with:
script: |
core.setFailed('Changed files coverage is less than 80%!')