Skip to content

bump cypress and workflow #95

bump cypress and workflow

bump cypress and workflow #95

Workflow file for this run

name: ci
on: push
permissions:
contents: write
issues: write
pull-requests: write
jobs:
test:
runs-on: ubuntu-22.04
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@v4
- name: Install dependencies πŸ“¦
# https://github.com/cypress-io/github-action
uses: cypress-io/github-action@v6
with:
runTests: false
- name: Check types 🧾
run: npm run types
- name: Catch it.only 🫴
run: npm run stop-only
- name: Run tests πŸ§ͺ
uses: cypress-io/github-action@v6
with:
install: false
start: npm start
test-merge-coverage:
runs-on: ubuntu-20.04
env:
DEBUG: code-coverage
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@v4
- name: Install dependencies πŸ§ͺ
# https://github.com/cypress-io/github-action
uses: cypress-io/github-action@v6
with:
runTests: false
- name: Merge coverage tests
working-directory: examples/merge-coverage
run: |
npm run cy:run1
npm run cy:run2
npm run merge
release:
needs: [test, test-merge-coverage]
runs-on: ubuntu-22.04
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@v4
- name: Install only the semantic release πŸ“¦
run: npm install semantic-release
- name: Semantic Release πŸš€
uses: cycjimmy/semantic-release-action@v4
with:
branch: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}