Skip to content

Commit b86271f

Browse files
[FEATURE] Implemented initial upload template for coverage GHA (- WIP #130 -)
Additions with file .github/actions/test-reporter-upload/action.yml: * New GHA action template to handle uploading coverage results to various services Changes in file .github/actions/fetch-test-reporter/action.yml: * moved tokens to secrets * related work Changes in file .github/actions/purge-test-reporter/action.yml: * moved tokens to secrets * related work Changes in file .github/workflows/Tests.yml: * related work Changes in file tests/check_codecov: * refactored a bit to focus on config validation more. Changes in file tests/check_spelling: * related work
1 parent e4b9bc9 commit b86271f

File tree

6 files changed

+465
-116
lines changed

6 files changed

+465
-116
lines changed

.github/actions/fetch-test-reporter/action.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ inputs:
1414
rate limiting.
1515
default: ${{ github.server_url == 'https://github.com' && github.token || '' }}
1616
required: true
17+
secrets:
1718
codeclimate-token:
1819
description: |
1920
The token used to authenticate when performing codeclimate API operations.
@@ -70,10 +71,10 @@ runs:
7071
if: ${{ !cancelled() && (steps.output_can_fetch.outputs.can_fetch == 'true') && (runner.os != 'Windows') && (github.repository == 'reactive-firewall/multicast') }}
7172
shell: bash
7273
env:
73-
CODECLIMATE_REPO_TOKEN: ${{ github.server_url == 'https://github.com' && inputs.codeclimate-token || '' }}
74-
CC_TEST_REPORTER_ID: ${{ github.server_url == 'https://github.com' && inputs.cc-test-reporter-id || '' }}
75-
COVERALLS_REPO_TOKEN: ${{ github.server_url == 'https://github.com' && inputs.coveralls-token || '' }}
76-
DEEPSOURCE_DSN: ${{ github.server_url == 'https://github.com' && inputs.deepsource-dsn || '' }}
74+
CODECLIMATE_REPO_TOKEN: ${{ github.server_url == 'https://github.com' && secrets.codeclimate-token || '' }}
75+
CC_TEST_REPORTER_ID: ${{ github.server_url == 'https://github.com' && secrets.cc-test-reporter-id || '' }}
76+
COVERALLS_REPO_TOKEN: ${{ github.server_url == 'https://github.com' && secrets.coveralls-token || '' }}
77+
DEEPSOURCE_DSN: ${{ github.server_url == 'https://github.com' && secrets.deepsource-dsn || '' }}
7778
run: |
7879
${{ github.workspace }}/.github/tools/fetch-test-reporter/fetch-test-reporter || exit $?
7980
- name: "Evaluate Fetch Task"

.github/actions/purge-test-reporter/action.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ inputs:
1414
rate limiting.
1515
default: ${{ github.server_url == 'https://github.com' && github.token || '' }}
1616
required: true
17+
secrets:
1718
codeclimate-token:
1819
description: |
1920
The token used to authenticate when performing codeclimate API operations.
@@ -70,10 +71,10 @@ runs:
7071
if: ${{ !cancelled() && (steps.output_can_purge.outputs.can_purge == 'true') && (runner.os != 'Windows') && (github.repository == 'reactive-firewall/multicast') }}
7172
shell: bash
7273
env:
73-
CODECLIMATE_REPO_TOKEN: ${{ github.server_url == 'https://github.com' && inputs.codeclimate-token || '' }}
74-
CC_TEST_REPORTER_ID: ${{ github.server_url == 'https://github.com' && inputs.cc-test-reporter-id || '' }}
75-
COVERALLS_REPO_TOKEN: ${{ github.server_url == 'https://github.com' && inputs.coveralls-token || '' }}
76-
DEEPSOURCE_DSN: ${{ github.server_url == 'https://github.com' && inputs.deepsource-dsn || '' }}
74+
CODECLIMATE_REPO_TOKEN: ${{ github.server_url == 'https://github.com' && secrets.codeclimate-token || '' }}
75+
CC_TEST_REPORTER_ID: ${{ github.server_url == 'https://github.com' && secrets.cc-test-reporter-id || '' }}
76+
COVERALLS_REPO_TOKEN: ${{ github.server_url == 'https://github.com' && secrets.coveralls-token || '' }}
77+
DEEPSOURCE_DSN: ${{ github.server_url == 'https://github.com' && secrets.deepsource-dsn || '' }}
7778
run: |
7879
${{ github.workspace }}/.github/tools/fetch-test-reporter/purge-test-reporter || exit $?
7980
- name: "Evaluate Fetch Task"

0 commit comments

Comments
 (0)