From 27f73f2b7b24bd9a011d3d090f9081c73ddec775 Mon Sep 17 00:00:00 2001 From: Buck Doyle Date: Thu, 21 Jan 2021 08:25:16 -0600 Subject: [PATCH] Change to fork of audit to log flaky tests (#9518) This will report the names of flaky tests instead of just counting them. --- .github/workflows/ember-test-audit.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ember-test-audit.yml b/.github/workflows/ember-test-audit.yml index ff3859018..c08140d2e 100644 --- a/.github/workflows/ember-test-audit.yml +++ b/.github/workflows/ember-test-audit.yml @@ -58,14 +58,27 @@ jobs: - uses: actions/download-artifact@v2 with: name: pr-audit - - uses: backspace/ember-test-audit-comparison-action@v1 + - uses: backspace/ember-test-audit-comparison-action@v2 with: base-report-path: base-audit.json comparison-report-path: pr-audit.json base-identifier: ${{ github.event.pull_request.base.ref }} comparison-identifier: ${{ github.event.pull_request.head.sha }} - output-path: audit-diff.md + timing-output-path: audit-diff.md + flakiness-output-path: flakiness-report.md - uses: marocchino/sticky-pull-request-comment@33a6cfb with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} path: audit-diff.md + - name: Check for existence of flakiness report + id: check_file + uses: andstor/file-existence-action@v1 + with: + files: "flakiness-report.md" + - name: comment PR + if: steps.check_file.outputs.files_exists == 'true' + uses: machine-learning-apps/pr-comment@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + path: flakiness-report.md