Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Commit bea334c

Browse files
committed
rework the badges workflow
1 parent e6795b6 commit bea334c

File tree

4 files changed

+55
-58
lines changed

4 files changed

+55
-58
lines changed

.github/workflows/badges.yml

Lines changed: 47 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: badges
22
on:
3+
push:
4+
# update README badge only if this file changes
5+
branches:
6+
- main
7+
paths:
8+
- .github/workflows/demo.yml
39
schedule:
410
# update README badges every night
511
# because we have a few badges that are linked
@@ -26,57 +32,48 @@ jobs:
2632
# https://github.com/bahmutov/dependency-version-badge/issues/16
2733
run: |
2834
npx update-badge \
29-
cypress-react-unit-test --from bahmutov/try-cra-with-unit-test --short --behind
30-
npx update-badge \
31-
cypress-react-unit-test --from bahmutov/try-cra-app-typescript --short --behind
32-
npx update-badge \
33-
cypress-react-unit-test --from bahmutov/react-todo-with-hooks --short --behind
34-
npx update-badge \
35-
cypress-react-unit-test --from bahmutov/test-redux-examples --short --behind
36-
npx update-badge \
37-
cypress-react-unit-test --from bahmutov/test-react-hooks-animations --short --behind
38-
npx update-badge \
39-
cypress-react-unit-test --from bahmutov/test-mdx-example --short --behind
40-
npx update-badge \
41-
cypress-react-unit-test --from bahmutov/test-apollo --short --behind
42-
npx update-badge \
43-
cypress-react-unit-test --from bahmutov/test-xstate-react --short --behind
44-
npx update-badge \
45-
cypress-react-unit-test --from bahmutov/test-react-router-v5 --short --behind
46-
npx update-badge \
47-
cypress-react-unit-test --from bahmutov/test-material-ui --short --behind
48-
npx update-badge \
49-
cypress-react-unit-test --from bahmutov/test-d3-react-gauge --short --behind
50-
npx update-badge \
51-
cypress-react-unit-test --from bahmutov/storybook-code-coverage --short --behind
52-
npx update-badge \
53-
cypress-react-unit-test --from bahmutov/react-loading-skeleton --short --behind
54-
npx update-badge \
55-
cypress-react-unit-test --from bahmutov/test-swr --short --behind
56-
npx update-badge \
57-
cypress-react-unit-test --from bahmutov/emoji-search --short --behind
58-
npx update-badge \
59-
cypress-react-unit-test --from bahmutov/test-custom-error-boundary --short --behind
60-
npx update-badge \
61-
cypress-react-unit-test --from bahmutov/Jscrambler-Webpack-React --short --behind
62-
npx update-badge \
63-
cypress-react-unit-test --from bahmutov/integration-tests --short --behind
64-
npx update-badge \
65-
cypress-react-unit-test --from bahmutov/mobx-react-typescript-boilerplate --short --behind
66-
npx update-badge \
67-
cypress-react-unit-test --from bahmutov/test-react-hook-form --short --behind
68-
npx update-badge \
69-
cypress-react-unit-test --from bahmutov/react-with-rollup --short --behind
70-
npx update-badge \
71-
cypress-react-unit-test --from bahmutov/testing-react-example --short --behind
72-
npx update-badge \
73-
cypress-react-unit-test --from bahmutov/ejected-react-scripts-example --short --behind
74-
npx update-badge \
75-
cypress-react-unit-test --from bahmutov/react-tic-tac-toe-example --short --behind
76-
npx update-badge \
77-
cypress-react-unit-test --from bahmutov/react-hooks-file-upload --short --behind
35+
cypress-react-unit-test --short --behind \
36+
--from bahmutov/try-cra-with-unit-test \
37+
--from bahmutov/try-cra-app-typescript \
38+
--from bahmutov/react-todo-with-hooks \
39+
--from bahmutov/test-redux-examples \
40+
--from bahmutov/test-react-hooks-animations
41+
42+
- name: Update more badges 💎
43+
run: |
7844
npx update-badge \
79-
cypress-react-unit-test --from bahmutov/react-query-example --short --behind
45+
cypress-react-unit-test --short --behind \
46+
--from bahmutov/test-mdx-example \
47+
--from bahmutov/test-apollo \
48+
--from bahmutov/test-xstate-react
49+
--from bahmutov/test-react-router-v5 \
50+
--from bahmutov/test-material-ui \
51+
--from bahmutov/test-d3-react-gauge
52+
53+
- name: Update more badges 💎
54+
run: |
55+
npx update-badge \
56+
cypress-react-unit-test --short --behind \
57+
--from bahmutov/storybook-code-coverage \
58+
--from bahmutov/react-loading-skeleton \
59+
--from bahmutov/test-swr \
60+
--from bahmutov/emoji-search \
61+
--from bahmutov/test-custom-error-boundary \
62+
--from bahmutov/Jscrambler-Webpack-React
63+
64+
- name: Update more badges 💎
65+
run: |
66+
npx update-badge \
67+
cypress-react-unit-test --short --behind \
68+
--from bahmutov/integration-tests \
69+
--from bahmutov/mobx-react-typescript-boilerplate \
70+
--from bahmutov/test-react-hook-form \
71+
--from bahmutov/react-with-rollup \
72+
--from bahmutov/testing-react-example \
73+
--from bahmutov/ejected-react-scripts-example \
74+
--from bahmutov/react-tic-tac-toe-example \
75+
--from bahmutov/react-hooks-file-upload \
76+
--from bahmutov/react-query-example
8077

8178
# commit any changed files
8279
# https://github.com/mikeal/publish-to-github-action

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,10 @@ This way of component testing has been verified in a number of forked 3rd party
248248
<!-- prettier-ignore-start -->
249249
Repo | Version | Description
250250
--- | --- | ---
251-
[try-cra-with-unit-test](https://github.com/bahmutov/try-cra-with-unit-test) | ![cypress-react-unit-test used in try-cra-with-unit-test short](https://img.shields.io/badge/4.1.7-yellow) | Hello world initialized with CRAv3
252-
[try-cra-app-typescript](https://github.com/bahmutov/try-cra-app-typescript) | ![cypress-react-unit-test used in try-cra-app-typescript short](https://img.shields.io/badge/4.16.0-brightgreen) | Hello world initialized with CRAv3 `--typescript`
253-
[react-todo-with-hooks](https://github.com/bahmutov/react-todo-with-hooks) | ![cypress-react-unit-test used in react-todo-with-hooks short](https://img.shields.io/badge/4.16.0-brightgreen) | Modern web application using hooks
254-
[test-redux-examples](https://github.com/bahmutov/test-redux-examples) | ![cypress-react-unit-test used in test-redux-examples short](https://img.shields.io/badge/4.16.0-brightgreen) | Example apps copies from official Redux repo and tested as components
251+
[try-cra-with-unit-test](https://github.com/bahmutov/try-cra-with-unit-test) | ![cypress-react-unit-test used in try-cra-with-unit-test short](https://img.shields.io/badge/4.16.2-brightgreen) | Hello world initialized with CRAv3
252+
[try-cra-app-typescript](https://github.com/bahmutov/try-cra-app-typescript) | ![cypress-react-unit-test used in try-cra-app-typescript short](https://img.shields.io/badge/4.16.2-brightgreen) | Hello world initialized with CRAv3 `--typescript`
253+
[react-todo-with-hooks](https://github.com/bahmutov/react-todo-with-hooks) | ![cypress-react-unit-test used in react-todo-with-hooks short](https://img.shields.io/badge/4.16.2-brightgreen) | Modern web application using hooks
254+
[test-redux-examples](https://github.com/bahmutov/test-redux-examples) | ![cypress-react-unit-test used in test-redux-examples short](https://img.shields.io/badge/4.16.2-brightgreen) | Example apps copies from official Redux repo and tested as components
255255
[test-react-hooks-animations](https://github.com/bahmutov/test-react-hooks-animations) | ![cypress-react-unit-test used in test-react-hooks-animations short](https://img.shields.io/badge/4.16.0-brightgreen) | Testing React springs fun blob animation
256256
[test-mdx-example](https://github.com/bahmutov/test-mdx-example) | ![cypress-react-unit-test used in test-mdx-example short](https://img.shields.io/badge/4.16.0-brightgreen) | Example testing MDX components using Cypress
257257
[test-apollo](https://github.com/bahmutov/test-apollo) | ![cypress-react-unit-test used in test-apollo short](https://img.shields.io/badge/4.10.0-yellow) | Component testing an application that uses Apollo GraphQL library

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"cypress-expect": "2.1.2",
9696
"cypress-react-selector": "2.2.0",
9797
"date-fns": "2.13.0",
98-
"dependency-version-badge": "1.7.0",
98+
"dependency-version-badge": "1.9.0",
9999
"framer-motion": "2.6.13",
100100
"happo-cypress": "1.9.2",
101101
"happo.io": "5.6.1",

0 commit comments

Comments
 (0)