-
Notifications
You must be signed in to change notification settings - Fork 2
Reports group - v0 #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,57 +1,16 @@ | ||
| name: 'Coverage upload' | ||
| name: 'Coverage' | ||
| on: | ||
| workflow_run: | ||
| workflows: ["CI"] | ||
| types: [completed] | ||
|
|
||
| jobs: | ||
| fetch-info: | ||
| name: Fetch triggering workflow metadata | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| checks: write # For the check run creation ! | ||
| steps: | ||
| - name: 'Check run ○しろまる' | ||
| uses: yoanm/temp-reports-group-workspace/.github/actions/attach-check-run-to-triggering-workflow-action@develop | ||
| with: | ||
| name: 'Fetch coverage info' | ||
| fails-on-triggering-workflow-failure: true | ||
|
|
||
| - uses: yoanm/temp-reports-group-workspace/.github/actions/fetch-workflow-metadata-action@develop | ||
| id: fetch-workflow-metadata | ||
|
|
||
| outputs: | ||
| commit-sha: ${{ steps.fetch-workflow-metadata.outputs.commit-sha }} | ||
| run-id: ${{ steps.fetch-workflow-metadata.outputs.run-id }} | ||
|
|
||
| codacy-uploader: | ||
| name: Codacy | ||
| needs: [fetch-info] | ||
| uses: yoanm/temp-reports-group-workspace/.github/workflows/codacy-upload-from-artifacts.yml@develop | ||
| permissions: | ||
| contents: read | ||
| checks: write # For the check run creation ! | ||
| secrets: | ||
| PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
| with: | ||
| artifacts-pattern: coverage-groups-* | ||
| run-id: ${{ needs.fetch-info.outputs.run-id }} | ||
|
|
||
| codecov-uploader: | ||
| name: Codecov | ||
| needs: [fetch-info] | ||
| uses: yoanm/temp-reports-group-workspace/.github/workflows/codecov-upload-from-artifacts.yml@develop | ||
| upload: | ||
| name: Upload | ||
| permissions: | ||
| contents: read | ||
| checks: write # For the check run creation ! | ||
| secrets: | ||
| TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
| with: | ||
| artifacts-pattern: coverage-groups-* | ||
| run-id: ${{ needs.fetch-info.outputs.run-id }} | ||
| override-commit: ${{ needs.fetch-info.outputs.commit-sha }} | ||
| override-branch: ${{ needs.fetch-info.outputs.branch }} | ||
| override-pr: ${{ needs.fetch-info.outputs.pr-number }} | ||
| override-build: ${{ needs.fetch-info.outputs.run-id }} | ||
| override-build-url: ${{ needs.fetch-info.outputs.run-url }} | ||
| CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
| uses: ./.github/workflows/reusable-coverage-upload-workflow.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| name: 'Test CI updates' | ||
| # [DESCRIPTION] | ||
| # As CI workflow relies on `workflow_run` trigger for upload, this workflow is used in order to ease updates made on | ||
| # CI workflow (or linked workflows/actions). It's kind of pre-check to ensure once updates are merged on main branch, | ||
| # the `workflow_run` workflow execution will behave as expected. | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: | ||
| - opened | ||
| - synchronize | ||
| branches: [master] # Only for PR targeting master branch | ||
| paths: # /!\ Duplicate the same list as `on.pull_request.paths-ignore` property value for CI workflow ! | ||
| - '.github/workflows/pre-check-CI-updates.yml' # This workflow | ||
| - '.github/workflows/CI.yml' | ||
| - '.github/workflows/coverage-upload.yml' | ||
| - '.github/workflows/reusable-CI-workflow.yml' | ||
| - '.github/workflows/reusable-coverage-upload-workflow.yml' | ||
|
|
||
| concurrency: | ||
| group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}" | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| tests: | ||
| name: Tests | ||
| permissions: | ||
| contents: read | ||
| uses: ./.github/workflows/reusable-CI-workflow.yml | ||
|
|
||
| upload: | ||
| name: Upload | ||
| needs: [tests] | ||
| permissions: | ||
| contents: read | ||
| checks: write # For the check run creation ! | ||
| secrets: | ||
| CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
| uses: ./.github/workflows/reusable-coverage-upload-workflow.yml |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.