Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Heinrich <[email protected]>
  • Loading branch information
andistorm committed Oct 4, 2024
1 parent 656747b commit 6b71e87
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,23 @@ env:
jobs:
lint:
name: Lint Repository
needs:
- setup-env
runs-on: ${{ inputs.runner }}
if: ${{ inputs.run_lint == 'true' }}
steps:
- name: Checkout local github actions
uses: actions/checkout@v3
with:
repository: everest/everest-ci
ref: ${{ needs.setup-env.outputs.sha_reusable_workflow }}
path: everest-ci
- name: Checkout repository
uses: actions/checkout@v3
with:
path: source
- name: Run clang-format
uses: everest/everest-ci/github-actions/run-clang-format@v1.3.1
uses: ./everest-ci/github-actions/run-clang-format
with:
source-dir: source/${{ inputs.lint_source_dir }}
extensions: ${{ inputs.lint_extensions }}
Expand Down Expand Up @@ -257,7 +265,6 @@ jobs:
BUILD_KIT_IMAGE: ${{ needs.build-and-push-build-kit.outputs.one_image_tag_long }}
steps:
- name: Checkout local github actions
# LTODO check all tags
uses: actions/checkout@v3
with:
repository: everest/everest-ci
Expand Down Expand Up @@ -335,7 +342,6 @@ jobs:
- name: Deploy html coverage report
id: deploy_coverage_report
if: ${{ steps.run_coverage.outcome == 'success' || steps.run_coverage.outcome == 'failure' }}
# LTODO update tag
uses: ./everest-ci/github-actions/deploy-ci-artifact
with:
target_repo: ${{ inputs.artifact_deploy_target_repo }}
Expand Down Expand Up @@ -457,6 +463,12 @@ jobs:
# LTODO uncomment
# if: ${{ inputs.run_coverage && inputs.do_not_run_coverage_badge_creation == 'false' && inputs.run_coverage == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main' }}
steps:
- name: Checkout local github actions
uses: actions/checkout@v3
with:
repository: everest/everest-ci
ref: ${{ needs.setup-env.outputs.sha_reusable_workflow }}
path: everest-ci
- name: Download xml coverage report
uses: actions/[email protected]
with:
Expand All @@ -477,13 +489,11 @@ jobs:
f.write(f"line_coverage_percentage={float(line_coverage) * 100}\n")
- name: Generate coverage badge
run: |
# LTODO install in docker image
pip install anybadge
mkdir -p ${{ github.workspace }}/coverage-badge/
anybadge -o --label Coverage --value ${{ steps.parse_coverage_report.outputs.line_coverage_percentage }} -s "%" --file ${{ github.workspace }}/coverage-badge/coverage-badge.svg 20=red 40=orange 60=yellow 80=yellowgreen 100=green
- name: Deploy coverage badge
# LTODO update version
uses: everest/everest-ci/github-actions/deploy-ci-artifact@feature/add-reusable-ci-workflow
uses: ./everest-ci/github-actions/deploy-ci-artifact
with:
target_repo: ${{ inputs.artifact_deploy_target_repo }}
github_token: ${{ secrets.coverage_deploy_token }}
Expand All @@ -497,13 +507,10 @@ jobs:
name: coverage-report
path: coverage-report
- name: Deploy html coverage report
# LTODO update version
uses: everest/everest-ci/github-actions/deploy-ci-artifact@feature/add-reusable-ci-workflow
uses: ./everest-ci/github-actions/deploy-ci-artifact
with:
target_repo: ${{ inputs.artifact_deploy_target_repo }}
github_token: ${{ secrets.coverage_deploy_token }}
artifact_name: coverage-report
artifact_directory: ${{ github.workspace }}/coverage-report/
deploy_global_artifact: true

# LTODO add link to badge

0 comments on commit 6b71e87

Please sign in to comment.