fix(deps): update dependency find-cypress-specs to v1.44.2 #291
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 }} |