diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 509fa4bd..963cde73 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -4,7 +4,6 @@ on: # Build any PRs and main branch changes pull_request: types: - opened - - edited - synchronize push: branches: [ master ] @@ -18,11 +17,8 @@ concurrency: env: TEST_OUTPUT_STYLE: pretty COMPOSER_OPTIONS: --optimize-autoloader - CODACY_CACHE_PATH: ~/.cache/codacy - CODACY_BIN: ~/.cache/codacy/codacy.sh jobs: -## Untrusted >>> debug-context: name: DEBUG - context runs-on: ubuntu-latest @@ -232,61 +228,3 @@ jobs: - name: Test run: make test-unit && make test-functional -## <<< Untrusted -## Trusted - to move to a workflow_run workflow >>> - fetch-info: - name: Fetch triggering workflow metadata - runs-on: ubuntu-latest - needs: [tests] - permissions: - contents: read - checks: write # For the check run creation ! - outputs: - commit-sha: ${{ steps.fetch-workflow-metadata.outputs.commit-sha }} - run-id: ${{ steps.fetch-workflow-metadata.outputs.run-id }} - steps: - - name: 'Check run ○' - uses: yoanm/tmp-reports-group-workspace/.github/actions/attach-check-run-to-triggering-workflow-action@develop - with: - name: 'Fetch coverage info **test**' - fails-on-triggering-workflow-failure: true - - - uses: yoanm/tmp-reports-group-workspace/.github/actions/fetch-workflow-metadata-action@develop - id: fetch-workflow-metadata - - codacy-uploader: - name: Codacy - needs: [fetch-info] - uses: yoanm/tmp-reports-group-workspace/.github/workflows/codacy-upload-from-artifacts.yml@develop - with: - artifacts-pattern: coverage-groups-* - run-id: ${{ needs.fetch-info.outputs.run-id }} - override-commit: ${{ needs.fetch-info.outputs.commit-sha }} - permissions: - contents: read - checks: write # For the check run creation ! - secrets: - PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} - - codecov-uploader: - name: Codecov - needs: [fetch-info] - uses: yoanm/tmp-reports-group-workspace/.github/workflows/codecov-upload-from-artifacts.yml@develop - with: - artifacts-pattern: coverage-groups-* - run-id: ${{ needs.fetch-info.outputs.run-id }} - override-commit: ${{ needs.fetch-info.outputs.commit-sha }} - permissions: - contents: read - checks: write # For the check run creation ! - secrets: - TOKEN: ${{ secrets.CODECOV_TOKEN }} - - debug-uploads: - name: DEBUG - Uploaders - runs-on: ubuntu-latest - needs: [ codacy-uploader, codecov-uploader ] - steps: - - run: echo 'codecov='"'"'${{ toJson(needs.codecov-uploader) }}'"'" - - run: echo 'codacy='"'"'${{ toJson(needs.codacy-uploader) }}'"'" -## <<< Trusted - to move to a workflow_run workflow