From 4bcc2b9f6ec6769862afbb15d52259857701ca2c Mon Sep 17 00:00:00 2001 From: Andy Wu Date: Tue, 2 Apr 2024 08:44:26 -0700 Subject: [PATCH] [feat] push individual artifacts --- .github/workflows/ci.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 79749c2..b3cbe13 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,8 +48,8 @@ jobs: continue-on-error: true run: | echo "Load environment variables" - touch .env.sepolia - echo API_BASE_URL=${{ secrets.API_BASE_URL }} >> .env.sepolia + rm .env.sepolia && touch .env.sepolia + echo API_BASE_URL=${{ secrets.API_BASE_URL }} > .env.sepolia echo API_PREFIX=${{ secrets.API_PREFIX_SEPOLIA }} >> .env.sepolia echo API_KEY=${{ secrets.API_KEY }} >> .env.sepolia test_env=sepolia npx playwright test @@ -58,8 +58,8 @@ jobs: continue-on-error: true run: | echo "Load environment variables" - touch .env.renaissance - echo API_BASE_URL=${{ secrets.API_BASE_URL }} >> .env.renaissance + rm .env.renaissance && touch .env.renaissance + echo API_BASE_URL=${{ secrets.API_BASE_URL }} > .env.renaissance echo API_PREFIX=${{ secrets.API_PREFIX_RENAISSANCE }} >> .env.renaissance echo API_KEY=${{ secrets.API_KEY }} >> .env.renaissance test_env=renaissance npx playwright test @@ -95,8 +95,17 @@ jobs: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} - name: Upload Test Results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 # if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main' with: - name: test-results - path: ./playwright-report-*/index.html + name: sepolia-test-reports + path: | + ./playwright-report-sepolia/index.html + + - name: Upload Test Results + uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 + # if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main' + with: + name: renaissance-test-reports + path: | + ./playwright-report-renaissance/index.html