Skip to content

ci: upgrade github actions #226

ci: upgrade github actions

ci: upgrade github actions #226

Workflow file for this run

name: External PR
on:
workflow_run:
workflows: ["CI with Maven"]
types:
- completed
pull_request:
branches: '*'
jobs:
comment:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }}
name: Comment
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Download artifact'
uses: actions/download-artifact@v4
with:
run-id: ${{github.event.workflow_run.id }}
name: pr
- run: unzip pr.zip
- name: outputs
run: |-
echo "PR=$(cat NR)" >> $GITHUB_ENV
echo "SHA=$(cat SHA)" >> $GITHUB_ENV
- name: cobertura-report-client-test
uses: 5monkeys/cobertura-action@v14
continue-on-error: true
with:
# The GITHUB_TOKEN for this repo
repo_token: ${{ github.token }}
# Path to the cobertura file.
path: client/jacoco-report/cobertura.xml
# If files with 100% should be skipped from report.
skip_covered: false
# Minimum allowed coverage percentage as an integer.
minimum_coverage: 65
# Show line rate as specific column.
show_line: true
# Show branch rate as specific column.
show_branch: true
# Use class names instead of the filename
show_class_names: true
# Use a unique name for the report and comment
report_name: Client Coverage Report
pull_request_number: ${{ steps.outputs.outputs.PR }}
only_changed_files: true
- name: cobertura-report-server-test
uses: 5monkeys/cobertura-action@v14
continue-on-error: true
with:
# The GITHUB_TOKEN for this repo
repo_token: ${{ github.token }}
# Path to the cobertura file.
path: server/jacoco-report/cobertura.xml
# If files with 100% should be skipped from report.
skip_covered: false
# Minimum allowed coverage percentage as an integer.
minimum_coverage: 58
# Show line rate as specific column.
show_line: true
# Show branch rate as specific column.
show_branch: true
# Use class names instead of the filename
show_class_names: true
# Use a unique name for the report and comment
report_name: Server Coverage Report
pull_request_number: ${{ steps.outputs.outputs.PR }}
only_changed_files: true