Skip to content

Commit 6ed99ca

Browse files
authored
docs: Fix example snippets to use with Github Actions (#29)
1 parent 0f08bb2 commit 6ed99ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ If you run your tests on [GitHub Actions](https://glebbahmutov.com/blog/trying-g
100100

101101
```yaml
102102
- name: Set code coverage commit status 📫
103-
run: npx set-gh-status
103+
run: npx -p check-code-coverage set-gh-status
104104
env:
105105
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
106106
```
@@ -115,7 +115,7 @@ If there is a coverage badge in the README file, you can add 2nd status check. T
115115

116116
```yaml
117117
- name: Ensure coverage has not dropped 📈
118-
run: npx set-gh-status --check-against-readme
118+
run: npx -p check-code-coverage set-gh-status --check-against-readme
119119
env:
120120
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
121121
```
@@ -128,7 +128,7 @@ When setting a status on a GitHub pull request, you need to use SHA of the merge
128128

129129
```yaml
130130
- name: Ensure coverage has not dropped 📈
131-
run: npx set-gh-status --check-against-readme
131+
run: npx -p check-code-coverage set-gh-status --check-against-readme
132132
env:
133133
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
134134
GH_SHA: ${{ github.event.after }}

0 commit comments

Comments
 (0)