From ff3c3c9324ab73c33f396803cd2d093f120e8d1a Mon Sep 17 00:00:00 2001 From: Mac Siri Date: Wed, 22 Feb 2023 12:52:52 -0500 Subject: [PATCH] [CI] Collect RSpec artifacts (#19128) Co-authored-by: Lawrence --- .github/workflows/ci-cd.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 5d284d7f0..1978c3846 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -60,6 +60,13 @@ jobs: - run: bundle exec rails db:test:prepare - name: RSpec run: bin/knapsack_pro_rspec + - name: Upload RSpec artifacts + uses: actions/upload-artifact@v3 + if: failure() + with: + name: rspec-artifacts + path: | + tmp/capybara - uses: codecov/codecov-action@v3 with: flags: ruby @@ -214,11 +221,11 @@ jobs: - name: cypress non-seed run: CREATOR_ONBOARDING_SEED_DATA=1 E2E_FOLDER=creatorOnboardingFlows E2E=true bin/rails cypress:run if: ${{ matrix.ci_node_index == 'non-seed' }} - - name: Upload screenshots + - name: Upload Cypress artifacts uses: actions/upload-artifact@v3 if: failure() with: - name: cypress-snapshots + name: cypress-artifacts path: | tmp/cypress_screenshots cypress/logs