Skip to content

blog post link

blog post link #773

Workflow file for this run

name: ci
on: push
jobs:
test:
# https://github.com/bahmutov/cypress-workflows
uses: bahmutov/cypress-workflows/.github/workflows/parallel.yml@v1
with:
n: 8
secrets:
recordKey: ${{ secrets.CYPRESS_RECORD_KEY }}
print-test-names:
runs-on: ubuntu-20.04
steps:
- name: Checkout
# https://github.com/actions/checkout
uses: actions/checkout@v3
- name: Install dependencies
uses: cypress-io/github-action@v5
with:
runTests: false
# https://github.com/bahmutov/find-cypress-specs
- name: Print Cypress test names 🖨
run: npm run print-tests
- name: Print Cypress test tags if any 🖨
run: npm run print-tags
lint-types:
runs-on: ubuntu-20.04
steps:
- name: Checkout
# https://github.com/actions/checkout
uses: actions/checkout@v3
- name: Install dependencies
uses: cypress-io/github-action@v5
with:
command: npm run lint
release:
runs-on: ubuntu-20.04
# only try releasing from the main branch
if: github.ref == 'refs/heads/main'
needs:
- test
- print-test-names
- lint-types
steps:
- name: Checkout
# https://github.com/actions/checkout
uses: actions/checkout@v3
- name: Run linter 🧪
# https://github.com/cypress-io/github-action
uses: cypress-io/github-action@v5
with:
command: npm run lint
- name: Semantic Release 🚀
uses: cycjimmy/semantic-release-action@v3
with:
branch: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}