Skip to content

Commit

Permalink
workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Apr 3, 2023
1 parent 4cda6be commit 9b45a35
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/badges.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: badges
on:
schedule:
# update badges every night
# because we have a few badges that are linked
# to the external repositories
- cron: '0 3 * * *'

jobs:
badges:
name: Badges
runs-on: ubuntu-20.04
steps:
- name: Checkout 🛎
uses: actions/checkout@v3

- name: Update version badges 🏷
run: npm run badges

- name: Commit any changed files 💾
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Updated badges
branch: main
file_pattern: README.md
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: ci
on: push
jobs:
test:
runs-on: ubuntu-20.04
steps:
- name: Checkout 🛎
uses: actions/checkout@v3

- name: Run Cypress tests 🧪
# https://github.com/cypress-io/github-action
uses: cypress-io/github-action@v5

release:
needs: [test]
runs-on: ubuntu-20.04
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout 🛎
uses: actions/checkout@v3

- name: Install only the semantic release 📦
run: npm install semantic-release

- name: Semantic Release 🚀
uses: cycjimmy/semantic-release-action@v3
with:
branch: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# cypress-on-fix
# cypress-on-fix ![cypress version](https://img.shields.io/badge/cypress-12.9.0-brightgreen)

> Fixes multiple Cypress plugins subscribing to "on" events
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Fixes multiple Cypress plugins subscribing to \"on\" events",
"main": "index.js",
"scripts": {
"badges": "npx -p dependency-version-badge update-badge cypress",
"test": "cypress run"
},
"repository": {
Expand Down

0 comments on commit 9b45a35

Please sign in to comment.