Skip to content

Commit

Permalink
refactor to use Github action builtin path filter
Browse files Browse the repository at this point in the history
Signed-off-by: Yulong Ruan <ruanyl@amazon.com>
  • Loading branch information
ruanyl committed Feb 2, 2024
1 parent 1cc5d90 commit 5cb74b9
Showing 1 changed file with 4 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,15 @@ name: Bundle Snapshot based E2E Cypress tests workflow for core Dashboards (Wind
on:
pull_request:
branches: [ '**' ]
paths:
- 'cypress/**/core-opensearch-dashboards/**'
push:
branches: [ '**' ]
paths:
- 'cypress/**/core-opensearch-dashboards/**'

jobs:
changes:
runs-on: ubuntu-latest
outputs:
tests: ${{ steps.filter.outputs.tests }}
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
base: ${{ github.ref }}
filters: |
tests:
- 'cypress/**/core-opensearch-dashboards/**'
tests-with-security:
needs: changes
if: ${{ needs.changes.outputs.tests == 'true' }}
uses: ./.github/workflows/release-e2e-workflow-template-windows.yml
with:
test-name: Core Dashboards using Bundle Snapshot
Expand All @@ -31,8 +19,6 @@ jobs:
#osd-serve-args: --data_source.enabled=true --vis_builder.enabled=true

tests-without-security:
needs: changes
if: ${{ needs.changes.outputs.tests == 'true' }}
uses: ./.github/workflows/release-e2e-workflow-template-windows.yml
with:
test-name: Core Dashboards using Bundle Snapshot
Expand Down

0 comments on commit 5cb74b9

Please sign in to comment.