Skip to content

Add new workflow to trigger Cypress tests from core #1

Add new workflow to trigger Cypress tests from core

Add new workflow to trigger Cypress tests from core #1

name: 'dhis2: e2e tests triggered by core'
on:
repository_dispatch:
types: [apps-e2e-tests-trigger]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
env:
GIT_AUTHOR_NAME: '@dhis2-bot'
GIT_AUTHOR_EMAIL: '[email protected]'
GIT_COMMITTER_NAME: '@dhis2-bot'
GIT_COMMITTER_EMAIL: '[email protected]'
GH_TOKEN: ${{ secrets.DHIS2_BOT_GITHUB_TOKEN }}
D2_VERBOSE: true
CI: true
jobs:
setup-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.specs }}
steps:
- uses: actions/checkout@v3
- name: Generate Test matrix
id: set-matrix
run: echo "::set-output name=specs::$(node src/generateTestMatrix.js)"
call-workflow-e2e-prod:
needs: setup-matrix
uses: ./.github/workflows/analytics-e2e-tests-triggered-by-core.yml@workflow-dispatch-cypress

Check failure on line 32 in .github/workflows/e2e-test-dispatch.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/e2e-test-dispatch.yml

Invalid workflow file

invalid value workflow reference: cannot specify version when calling local workflows
with:
should_record: ${{ contains(github.event.head_commit.message, '[e2e record]') || contains(join(github.event.pull_request.labels.*.name), 'e2e record')}}
spec-group: ${{ needs.setup-matrix.outputs.matrix }}
instance_url: ${{ github.event.client_payload.instance_url }}
secrets:
username: ${{ secrets.CYPRESS_DHIS2_USERNAME }}
password: ${{ secrets.CYPRESS_DHIS2_PASSWORD }}
recordkey: ${{ secrets.CYPRESS_RECORD_KEY }}
reportportal_api_key: ${{ secrets.REPORTPORTAL_API_KEY }}
reportportal_endpoint: ${{ vars.REPORTPORTAL_ENDPOINT }}
reportportal_project: ${{ vars.REPORTPORTAL_PROJECT }}