File tree Expand file tree Collapse file tree 1 file changed +6
-18
lines changed Expand file tree Collapse file tree 1 file changed +6
-18
lines changed Original file line number Diff line number Diff line change 81
81
needs :
82
82
- commitlint
83
83
- codelint
84
- permissions :
85
- contents : read
86
- pull-requests : write # to be able to comment on released pull requests
87
84
steps :
88
85
- uses : actions/checkout@v3
89
86
with :
@@ -97,24 +94,15 @@ jobs:
97
94
run : npm ci
98
95
- name : Test code
99
96
run : npm run test:coverage
100
- - name : Code Coverage Summary
101
- uses : irongut/CodeCoverageSummary@v1.3.0
102
- with :
103
- filename : coverage/cobertura-coverage.xml
104
- badge : true
105
- format : markdown
106
- output : both
107
- - name : Add Coverage PR Comment
108
- uses : marocchino/sticky-pull-request-comment@v2
109
- if : github.event_name == 'pull_request'
110
- continue-on-error : true
111
- with :
112
- recreate : true
113
- path : code-coverage-results.md
97
+ - name : Report coverage
98
+ run : |
99
+ echo "# Code coverage" >> $GITHUB_STEP_SUMMARY
100
+ npx nyc report | sed --expression='1d;$d' >> $GITHUB_STEP_SUMMARY
101
+ if : always()
114
102
release :
115
103
name : Release
116
104
concurrency : release
117
- if : ${{ github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
105
+ if : ${{ github.repository_owner == 'dhensby' && github. event_name == 'push' && github.actor != 'dependabot[bot]' }}
118
106
runs-on : ubuntu-latest
119
107
needs :
120
108
- commitlint
You can’t perform that action at this time.
0 commit comments