diff --git a/.github/workflows/template_flaky_tests.yml b/.github/workflows/template_flaky_tests.yml index b43ea7b6..59591b45 100644 --- a/.github/workflows/template_flaky_tests.yml +++ b/.github/workflows/template_flaky_tests.yml @@ -17,6 +17,9 @@ on: required: false type: string default: 'main' + path-suffixes: + required: false + type: string prefix: required: true type: string @@ -32,12 +35,13 @@ jobs: runs-on: ubuntu-24.04 steps: - name: Find flaky tests - uses: Staffbase/github-action-find-flaky-tests@v0.2.1 + uses: Staffbase/github-action-find-flaky-tests@v0.3.0 with: slack-channel-id: ${{ inputs.slack-channel-id }} slack-channel-name: ${{ inputs.slack-channel-name }} repository: ${{ inputs.repository }} branch: ${{ inputs.branch }} + path-suffixes: ${{ inputs.path-suffixes }} prefix: ${{ inputs.prefix }} slack-incoming-webhooks-url: ${{ secrets.slack-incoming-webhooks-url }} token: ${{ secrets.token }} diff --git a/README.md b/README.md index 28eadeef..f493c420 100644 --- a/README.md +++ b/README.md @@ -192,6 +192,8 @@ jobs: repository: 'Staffbase/test-flaky' # optional: name of the branch where it should check, default: main branch: 'master' + # optional: file path suffixes (comma seperated) to filter the test files + path-suffixes: ".spec.ts,.spec.tsx,.test.ts,.test.tsx" # prefix of the test run which should be filtered out prefix: 'test-' secrets: