diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 697d18ee2..5a202f434 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -162,20 +162,36 @@ jobs: run: | npx playwright install-deps - - name: 🚀 Run Playwright + - name: 🎭 Run Playwright working-directory: ./tests/playwright run: | npx playwright test env: OCTOPRINT_SERVER_BASE: ${{ github.workspace }}/e2econfig - - name: ⬆ Upload report + - name: 🔎 Check octoprint.log for errors + run: | + log=${{ github.workspace }}/e2econfig/logs/octoprint.log + if grep "\- ERROR \-" $log; then + echo "::error::Errors were logged to octoprint.log" + grep -Pazo '(?m)^\N+\- ERROR \-\N*\n(^\N*?\n)*?(?=\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2},\d{3} \- )' $log + exit 1 + fi + + - name: ⬆ Upload Playwright report uses: actions/upload-artifact@v3 if: always() with: name: playwright-report path: tests/playwright/playwright-report + - name: ⬆ Upload OctoPrint logs + uses: actions/upload-artifact@v3 + if: fail() + with: + name: octoprint-logs + path: ${{ github.workspace }}/e2econfig/logs + publish-on-testpypi: name: 📦 Publish on TestPyPI if: github.event_name == 'release' && github.repository == 'OctoPrint/OctoPrint'