Skip to content

chore(deps): update dependency cypress to v13.13.0 #288

chore(deps): update dependency cypress to v13.13.0

chore(deps): update dependency cypress to v13.13.0 #288

# starts a new TestRail run but with test cases from some specs only
# the test title has multiple test case IDs
name: multiple cases
on: [push]
jobs:
tests:
runs-on: ubuntu-20.04
env:
# pass TestRail settings from the project secrets
# via environment variables
TESTRAIL_HOST: ${{secrets.TESTRAIL_HOST}}
TESTRAIL_USERNAME: ${{secrets.TESTRAIL_USERNAME}}
TESTRAIL_PASSWORD: ${{secrets.TESTRAIL_PASSWORD}}
# the project ID is not that secret
TESTRAIL_PROJECTID: 1
# for debugging the scripts in this package
DEBUG: cypress-testrail-simple
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@v3
# Install NPM dependencies, cache them correctly
- name: Install πŸ“¦
uses: cypress-io/github-action@v5
with:
runTests: false
# you can pass GitHub information in the name and description
# to include in the TestRail run information
# https://docs.github.com/en/actions/learn-github-actions/contexts
- name: Start TestRail Run πŸƒπŸ»β€β™‚οΈ
id: testRail
run: |
runName="Testing multiple test cases in the title"
runDescription="Cypress tests for commit ${GITHUB_SHA} ${GITHUB_REF}"
echo ${runName}
echo ${runDescription}
node ./bin/testrail-start-run.js \
--spec 'cypress/e2e/spec-c.js' \
--name "${runName}" \
--description "${runDescription}" \
--set-gha-output
- name: Cypress tests πŸ§ͺ
uses: cypress-io/github-action@v5
with:
install-command: echo "Already installed"
record: true
group: Cases GitHub Actions
spec: 'cypress/e2e/spec-c.js'
env:
TESTRAIL_RUN_ID: ${{ steps.testRail.outputs.testRailRunId }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
- name: Close TestRail Run 🏁
# always close the test run, even if the previous steps have failed
if: ${{ always() }}
run: |
node ./bin/testrail-close-run.js ${{ steps.testRail.outputs.testRailRunId }}