Skip to content

Commit 05fca08

Browse files
committed
add CI
1 parent 5d9b025 commit 05fca08

File tree

3 files changed

+101
-1
lines changed

3 files changed

+101
-1
lines changed

.github/workflows/badges.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: badges
2+
on:
3+
push:
4+
# update README badge only if the README file changes
5+
# or if the package.json file changes, or this file changes
6+
branches:
7+
- main
8+
paths:
9+
- README.md
10+
- package.json
11+
- .github/workflows/badges.yml
12+
schedule:
13+
# update badges every night
14+
# because we have a few badges that are linked
15+
# to the external repositories
16+
- cron: '0 3 * * *'
17+
18+
jobs:
19+
badges:
20+
name: Badges
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout 🛎
24+
uses: actions/checkout@v2
25+
26+
- name: Update version badges 🏷
27+
run: npx -p dependency-version-badge update-badge cypress
28+
29+
- name: Commit any changed files 💾
30+
uses: stefanzweifel/git-auto-commit-action@v4
31+
with:
32+
commit_message: Updated badges
33+
branch: main
34+
file_pattern: README.md

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: ci
2+
on: push
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout 🛎
8+
uses: actions/checkout@v2
9+
10+
- name: Run tests 🧪
11+
uses: cypress-io/github-action@v2
12+
with:
13+
command: npm t
14+
15+
- name: Semantic Release 🚀
16+
uses: cycjimmy/semantic-release-action@v2
17+
with:
18+
branch: main
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,47 @@
1-
# cypress-markdown-preprocessor
1+
# cypress-markdown-preprocessor [![ci status][ci image]][ci url] [![badges status][badges image]][badges url] [![renovate-app badge][renovate-badge]][renovate-app]
22
> Use Markdown files as Cypress specs
3+
4+
### Small print
5+
6+
Author: Gleb Bahmutov <gleb.bahmutov@gmail.com> © 2020
7+
8+
- [@bahmutov](https://twitter.com/bahmutov)
9+
- [glebbahmutov.com](https://glebbahmutov.com)
10+
- [blog](https://glebbahmutov.com/blog)
11+
12+
License: MIT - do anything with the code, but don't blame me if it does not work.
13+
14+
Support: if you find any problems with this module, email / tweet /
15+
[open issue](https://github.com/bahmutov/cypress-markdown-preprocessor/issues) on Github
16+
17+
## MIT License
18+
19+
Copyright (c) 2020 Gleb Bahmutov <gleb.bahmutov@gmail.com>
20+
21+
Permission is hereby granted, free of charge, to any person
22+
obtaining a copy of this software and associated documentation
23+
files (the "Software"), to deal in the Software without
24+
restriction, including without limitation the rights to use,
25+
copy, modify, merge, publish, distribute, sublicense, and/or sell
26+
copies of the Software, and to permit persons to whom the
27+
Software is furnished to do so, subject to the following
28+
conditions:
29+
30+
The above copyright notice and this permission notice shall be
31+
included in all copies or substantial portions of the Software.
32+
33+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40+
OTHER DEALINGS IN THE SOFTWARE.
41+
42+
[ci image]: https://github.com/bahmutov/cypress-markdown-preprocessor/workflows/ci/badge.svg?branch=main
43+
[ci url]: https://github.com/bahmutov/cypress-markdown-preprocessor/actions
44+
[badges image]: https://github.com/bahmutov/cypress-markdown-preprocessor/workflows/badges/badge.svg?branch=main
45+
[badges url]: https://github.com/bahmutov/cypress-markdown-preprocessor/actions
46+
[renovate-badge]: https://img.shields.io/badge/renovate-app-blue.svg
47+
[renovate-app]: https://renovateapp.com/

0 commit comments

Comments
 (0)