Skip to content

Commit

Permalink
Try to collect logs for tests results
Browse files Browse the repository at this point in the history
  • Loading branch information
hichamboushaba committed Nov 29, 2024
1 parent 7915f9a commit 9a504d5
Showing 1 changed file with 37 additions and 6 deletions.
43 changes: 37 additions & 6 deletions .github/workflows/screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,20 @@ jobs:
- name: Archive App
uses: actions/upload-artifact@v4
with:
name: build
path: fastlane/DerivedData/Build/Products/
name: screenshot-app
path: fastlane/DerivedData/Build/Products/Debug-iphonesimulator/WooCommerce.app

- name: Archive Watch App
uses: actions/upload-artifact@v4
with:
name: watch-app
path: fastlane/DerivedData/Build/Products/Debug-watchsimulator/Woo Watch App.app

- name: Archive Runner
uses: actions/upload-artifact@v4
with:
name: screenshot-runner
path: fastlane/DerivedData/Build/Products/Debug-iphonesimulator/WooCommerceScreenshots-Runner.app

capture:
name: Capture
Expand All @@ -49,8 +61,8 @@ jobs:

strategy:
matrix:
language: [ar-SA, de-DE, en-US, es-ES, fr-FR, he, id, it, ja, ko, nl-NL, pt-BR, ru, sv, tr, zh-Hans, zh-Hant]
mode: [dark, light]
language: [ar-SA]
mode: [light]
steps:
- uses: actions/checkout@v1
- name: "Set up Ruby"
Expand All @@ -64,8 +76,20 @@ jobs:
- name: Download Screenshot App
uses: actions/download-artifact@v4
with:
name: build
path: fastlane/DerivedData/Build/Products/
name: screenshot-app
path: fastlane/DerivedData/Build/Products/Debug-iphonesimulator/WooCommerce.app

- name: Download Watch App
uses: actions/download-artifact@v4
with:
name: watch-app
path: fastlane/DerivedData/Build/Products/Debug-watchsimulator/Woo Watch App.app

- name: Download Screenshot Runner
uses: actions/download-artifact@v4
with:
name: screenshot-runner
path: fastlane/DerivedData/Build/Products/Debug-iphonesimulator/WooCommerceScreenshots-Runner.app

- name: Generate Screenshots
run: |
Expand All @@ -78,6 +102,13 @@ jobs:
name: "screenshot-log-${{ matrix.language }}-${{ matrix.mode }}"
path: fastlane/logs

- name: Store test results
if: always()
uses: actions/upload-artifact@v4
with:
name: "test-results-${{ matrix.language }}-${{ matrix.mode }}"
path: fastlane/screenshots/test_output

- name: Archive Generated Screenshots
run: |
cd fastlane && mkdir $GITHUB_RUN_ID && mv screenshots $GITHUB_RUN_ID
Expand Down

0 comments on commit 9a504d5

Please sign in to comment.