Skip to content

Commit

Permalink
создаём rerun_tests.yml взамен rerun flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Iajret authored Oct 19, 2023
1 parent c1b3745 commit cee6ba8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/rerun_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Rerun/Report Flaky Tests
on:
workflow_run:
workflows: [CI Suite]
types:
- completed
jobs:
rerun_flaky_tests:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt == 1 }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Rerun flaky tests
uses: actions/github-script@v6
with:
script: |
const { rerunFlakyTests } = await import('${{ github.workspace }}/tools/pull_request_hooks/rerunFlakyTests.js')
await rerunFlakyTests({ github, context })

0 comments on commit cee6ba8

Please sign in to comment.