[Backport 2.x] refactor: use function to make test cases reusable #2041
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
name: Security Analytics Release tests workflow in Bundled OpenSearch Dashboards | |
on: | |
pull_request: | |
branches: | |
- main | |
- dev-* | |
- 2.x | |
jobs: | |
changes: | |
runs-on: ubuntu-latest | |
outputs: | |
tests: ${{ steps.filter.outputs.tests }} | |
steps: | |
- uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
filters: | | |
tests: | |
- 'cypress/**/security-analytics-dashboards-plugin/**' | |
tests: | |
needs: changes | |
if: ${{ needs.changes.outputs.tests == 'true' }} | |
uses: ./.github/workflows/release-e2e-workflow-template.yml | |
with: | |
test-name: Security Analytics | |
test-command: env CYPRESS_NO_COMMAND_LOG=1 yarn cypress:run-with-security --browser chromium --spec 'cypress/integration/plugins/security-analytics-dashboards-plugin/*' |