From a8dcfbde95b681c9e6f324bccd80f374f30baeff Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 1 Jan 2024 02:11:00 +0100 Subject: [PATCH] Add step to keep screenshots of failed system tests --- .../rails/generators/rails/app/templates/github/ci.yml.tt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/railties/lib/rails/generators/rails/app/templates/github/ci.yml.tt b/railties/lib/rails/generators/rails/app/templates/github/ci.yml.tt index 06a162f3362..fedd10a2090 100644 --- a/railties/lib/rails/generators/rails/app/templates/github/ci.yml.tt +++ b/railties/lib/rails/generators/rails/app/templates/github/ci.yml.tt @@ -103,3 +103,10 @@ jobs: <%- end -%> # REDIS_URL: redis://localhost:6379/0 run: bin/rails db:setup test test:system + + - name: Keep screenshots from failed system tests + uses: actions/upload-artifact@v3 + if: always() + with: + name: screenshots + path: ${{ github.workspace }}/tmp/screenshots