Skip to content

Commit

Permalink
ci: add applitools logs (#921)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoamGaash authored Nov 16, 2024
1 parent 353e3dc commit cfee75c
Show file tree
Hide file tree
Showing 4 changed files with 994 additions and 448 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ env:
jobs:
test-with-coverage:
runs-on: ubuntu-22.04
env:
APPLITOOLS_API_KEY: ${{ secrets.APPLITOOLS_API_KEY }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ jobs:
needs: build
env:
APPLITOOLS_API_KEY: ${{ secrets.APPLITOOLS_API_KEY }}
APPLITOOLS_LOG_DIR: ./logs
APPLITOOLS_SHOW_LOGS: true
steps:
- name: Download artifact
uses: actions/download-artifact@v4
Expand All @@ -86,8 +88,6 @@ jobs:
- name: Run test
run: npm test
- name: Run Storybook tests
env:
APPLITOOLS_BATCH_ID: ${{ github.sha }}
if: env.APPLITOOLS_API_KEY
run: npx -y @applitools/eyes-storybook --storybook-url http://localhost:3000/storybook/index.html
- name: Prepare playwright artifact directory
Expand All @@ -102,6 +102,14 @@ jobs:
with:
name: playwright
path: playwright-artifact
- name: upload logs if exists
if: always()
uses: actions/upload-artifact@v4
with:
name: logs
path: logs
if-no-files-found: warn


publish-test-results:
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit cfee75c

Please sign in to comment.