Skip to content

Commit

Permalink
Update: Remove badge commit from workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenhutchings committed Apr 28, 2023
1 parent d05c2f1 commit 700f2ba
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:
- name: Build docs
run: npm run build:docs

- name: Run tests
run: npm test

- name: Create badge
run: npm run badge

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:

strategy:
matrix:
node-version: [16]
node-version: [14, 16]

steps:
- uses: actions/checkout@v3
Expand All @@ -22,11 +22,3 @@ jobs:

- name: Run tests
run: npm test

- name: Create badge
run: npm run badge

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update coverage badge
file_pattern: coverage.svg
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ resizes.
[licence img]: https://img.shields.io/github/license/stephenhutchings/shown.svg?color=1c2335
[licence url]: https://github.com/stephenhutchings/shown/blob/master/LICENSE.md
[test badge]: https://github.com/stephenhutchings/shown/workflows/Test/badge.svg?branch=master
[coverage img]: https://github.com/stephenhutchings/shown/blob/master/coverage.svg
[coverage img]: https://stephenhutchings.github.io/shown/coverage.svg
[documentation]: https://stephenhutchings.github.io/shown/
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"scripts": {
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
"badge": "make-coverage-badge --output-path=coverage.svg",
"badge": "make-coverage-badge --output-path=docs/coverage.svg",
"watch": "nodemon --exec 'npm run build'",
"build": "run-s build:**",
"build:lib": "esbuild src/index.js src/css/shown.css --bundle --platform=node --target=node10.4 --outdir=dist --out-extension:.js=.cjs",
Expand Down

0 comments on commit 700f2ba

Please sign in to comment.