Skip to content

Commit 20a737e

Browse files
authored
Refactor CI for forked repositories - remove original uploads (#102)
1 parent 857369e commit 20a737e

File tree

1 file changed

+0
-62
lines changed

1 file changed

+0
-62
lines changed

.github/workflows/CI.yml

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on: # Build any PRs and main branch changes
44
pull_request:
55
types:
66
- opened
7-
- edited
87
- synchronize
98
push:
109
branches: [ master ]
@@ -18,11 +17,8 @@ concurrency:
1817
env:
1918
TEST_OUTPUT_STYLE: pretty
2019
COMPOSER_OPTIONS: --optimize-autoloader
21-
CODACY_CACHE_PATH: ~/.cache/codacy
22-
CODACY_BIN: ~/.cache/codacy/codacy.sh
2320

2421
jobs:
25-
## Untrusted >>>
2622
debug-context:
2723
name: DEBUG - context
2824
runs-on: ubuntu-latest
@@ -232,61 +228,3 @@ jobs:
232228
233229
- name: Test
234230
run: make test-unit && make test-functional
235-
## <<< Untrusted
236-
## Trusted - to move to a workflow_run workflow >>>
237-
fetch-info:
238-
name: Fetch triggering workflow metadata
239-
runs-on: ubuntu-latest
240-
needs: [tests]
241-
permissions:
242-
contents: read
243-
checks: write # For the check run creation !
244-
outputs:
245-
commit-sha: ${{ steps.fetch-workflow-metadata.outputs.commit-sha }}
246-
run-id: ${{ steps.fetch-workflow-metadata.outputs.run-id }}
247-
steps:
248-
- name: 'Check run ○'
249-
uses: yoanm/tmp-reports-group-workspace/.github/actions/attach-check-run-to-triggering-workflow-action@develop
250-
with:
251-
name: 'Fetch coverage info **test**'
252-
fails-on-triggering-workflow-failure: true
253-
254-
- uses: yoanm/tmp-reports-group-workspace/.github/actions/fetch-workflow-metadata-action@develop
255-
id: fetch-workflow-metadata
256-
257-
codacy-uploader:
258-
name: Codacy
259-
needs: [fetch-info]
260-
uses: yoanm/tmp-reports-group-workspace/.github/workflows/codacy-upload-from-artifacts.yml@develop
261-
with:
262-
artifacts-pattern: coverage-groups-*
263-
run-id: ${{ needs.fetch-info.outputs.run-id }}
264-
override-commit: ${{ needs.fetch-info.outputs.commit-sha }}
265-
permissions:
266-
contents: read
267-
checks: write # For the check run creation !
268-
secrets:
269-
PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
270-
271-
codecov-uploader:
272-
name: Codecov
273-
needs: [fetch-info]
274-
uses: yoanm/tmp-reports-group-workspace/.github/workflows/codecov-upload-from-artifacts.yml@develop
275-
with:
276-
artifacts-pattern: coverage-groups-*
277-
run-id: ${{ needs.fetch-info.outputs.run-id }}
278-
override-commit: ${{ needs.fetch-info.outputs.commit-sha }}
279-
permissions:
280-
contents: read
281-
checks: write # For the check run creation !
282-
secrets:
283-
TOKEN: ${{ secrets.CODECOV_TOKEN }}
284-
285-
debug-uploads:
286-
name: DEBUG - Uploaders
287-
runs-on: ubuntu-latest
288-
needs: [ codacy-uploader, codecov-uploader ]
289-
steps:
290-
- run: echo 'codecov='"'"'${{ toJson(needs.codecov-uploader) }}'"'"
291-
- run: echo 'codacy='"'"'${{ toJson(needs.codacy-uploader) }}'"'"
292-
## <<< Trusted - to move to a workflow_run workflow

0 commit comments

Comments
 (0)