From 50206ee78d5e14994045efb7362c9cd106f1d4bc Mon Sep 17 00:00:00 2001 From: Christopher Bartz Date: Mon, 29 Apr 2024 19:05:12 +0200 Subject: [PATCH] lint tests.yaml --- .github/workflows/tests.yaml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 2bfd690a..a785afb3 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -11,7 +11,6 @@ on: jobs: tests: runs-on: ubuntu-latest - if: ${{ !failure() }} steps: - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 - name: Install tox @@ -39,17 +38,17 @@ jobs: const fs = require('fs'); const result = JSON.parse(fs.readFileSync('./test-result.json')).testenvs; - let int_result = result.test.test; - let int_success = int_result[0].retcode == 0; - let int_output = int_result[0].output; + let lint_result = result.test.test; + let lint_success = lint_result[0].retcode == 0; + let lint_output = lint_result[0].output; let coverage_result = result["coverage-report"].test; let coverage_output = coverage_result[0].output; let reports = []; - if (!int_success) { + if (!lint_success) { reports.push( `Integration tests failed for ${sha}\n - \`\`\`\n${no_color(int_output).trim()}\n\`\`\`` + \`\`\`\n${no_color(lint_output).trim()}\n\`\`\`` ); } reports.push( @@ -67,4 +66,4 @@ jobs: - name: Report if: always() id: report - run: echo "outcome=${{ steps.run-tests.conclusion }}" >> $GITHUB_OUTPUT \ No newline at end of file + run: echo "outcome=${{ steps.run-tests.conclusion }}" >> $GITHUB_OUTPUT