Skip to content

re-enable codecov, and sonarqube on the frontend.#4296

Merged
devinleighsmith merged 7 commits intobcgov:devfrom
devinleighsmith:codecov
Sep 15, 2024
Merged

re-enable codecov, and sonarqube on the frontend.#4296
devinleighsmith merged 7 commits intobcgov:devfrom
devinleighsmith:codecov

Conversation

@devinleighsmith
Copy link
Collaborator

No description provided.

@devinleighsmith devinleighsmith added tech-debt Removing technical debt devops labels Aug 28, 2024
@devinleighsmith devinleighsmith self-assigned this Aug 28, 2024
- name: SonarQube Scan
id: scan
uses: sonarsource/sonarqube-scan-action@master
if: false
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why this was disabled - the quality gate / upload pass on my fork.

uses: codecov/codecov-action@v3.1.1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV }}
- name: Save PR number and scan results
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upload test results for consumption by codecov.

run_id: ${{github.event.workflow_run.id }},
});
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
return artifact.name == "pr-codecov"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pull the named artifact.

env_vars: C#
# Specify whether or not CI build should fail if Codecov runs into an error during upload
fail_ci_if_error: false
override_pr: ${{steps.create-comment.outputs.result}}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to provide the PR, as this workflow does not have direct access to the PR.

# access to secrets
on:
workflow_run:
workflows: ["API (.NET 8)", "APP (React)"]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kicked off by the completion of one of these two.

return issue_number;
result-encoding: string
- name: Codecov(API)
if: ${{ github.event.workflow_run.name == 'API (.NET 8)' }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slightly different params for the two different workflows.

@devinleighsmith
Copy link
Collaborator Author

Tested this on my fork, doesn't provide the nice visual that codecov used to with this format, can figure that out later.

@github-actions
Copy link
Contributor

✅ No secrets were detected in the code.

@devinleighsmith devinleighsmith merged commit 9ccd8f9 into bcgov:dev Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops tech-debt Removing technical debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants