File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
# action.yml
2
2
name : ' Coveralls GitHub Action'
3
3
description : ' Send test coverage data to Coveralls.io for analysis, change tracking, and notifications.'
4
- author : ' Nick Merwin (Coveralls, Inc.)'
5
- inputs :
4
+ author : Coveralls.io
6
5
github-token :
7
6
description : ' Put secrets.GITHUB_TOKEN here'
8
7
required : false
80
79
if : runner.os == 'macOS'
81
80
shell : bash
82
81
run : |
82
+ # Enable debugging if 'debug' is true
83
+ [ "${{ inputs.debug }}" == "true" ] && set -x
84
+
83
85
brew tap coverallsapp/coveralls --quiet
84
86
brew install coveralls --quiet
85
87
@@ -114,6 +116,9 @@ runs:
114
116
COVERAGE_REPORTER_VERSION : ${{ inputs.coverage-reporter-version }}
115
117
shell : bash
116
118
run : |
119
+ # Enable debugging if 'debug' is true
120
+ [ "${{ inputs.debug }}" == "true" ] && set -x
121
+
117
122
mkdir -p ~/bin/
118
123
cd ~/bin/
119
124
@@ -171,6 +176,11 @@ runs:
171
176
COVERAGE_REPORTER_VERSION : ${{ inputs.coverage-reporter-version }}
172
177
shell : pwsh
173
178
run : |
179
+ # Enable debugging if 'debug' is true
180
+ if ("${{ inputs.debug }}" -eq "true") {
181
+ $DebugPreference = 'Continue'
182
+ }
183
+
174
184
New-Item -Path $env:HOME\bin -ItemType directory -Force
175
185
Push-Location $env:HOME\bin
176
186
if($env:COVERAGE_REPORTER_VERSION -eq "latest") {
You can’t perform that action at this time.
0 commit comments