Skip to content

Commit 9a504d5

Browse files
Try to collect logs for tests results
1 parent 7915f9a commit 9a504d5

File tree

1 file changed

+37
-6
lines changed

1 file changed

+37
-6
lines changed

.github/workflows/screenshots.yml

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,20 @@ jobs:
3939
- name: Archive App
4040
uses: actions/upload-artifact@v4
4141
with:
42-
name: build
43-
path: fastlane/DerivedData/Build/Products/
42+
name: screenshot-app
43+
path: fastlane/DerivedData/Build/Products/Debug-iphonesimulator/WooCommerce.app
44+
45+
- name: Archive Watch App
46+
uses: actions/upload-artifact@v4
47+
with:
48+
name: watch-app
49+
path: fastlane/DerivedData/Build/Products/Debug-watchsimulator/Woo Watch App.app
50+
51+
- name: Archive Runner
52+
uses: actions/upload-artifact@v4
53+
with:
54+
name: screenshot-runner
55+
path: fastlane/DerivedData/Build/Products/Debug-iphonesimulator/WooCommerceScreenshots-Runner.app
4456

4557
capture:
4658
name: Capture
@@ -49,8 +61,8 @@ jobs:
4961

5062
strategy:
5163
matrix:
52-
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]
53-
mode: [dark, light]
64+
language: [ar-SA]
65+
mode: [light]
5466
steps:
5567
- uses: actions/checkout@v1
5668
- name: "Set up Ruby"
@@ -64,8 +76,20 @@ jobs:
6476
- name: Download Screenshot App
6577
uses: actions/download-artifact@v4
6678
with:
67-
name: build
68-
path: fastlane/DerivedData/Build/Products/
79+
name: screenshot-app
80+
path: fastlane/DerivedData/Build/Products/Debug-iphonesimulator/WooCommerce.app
81+
82+
- name: Download Watch App
83+
uses: actions/download-artifact@v4
84+
with:
85+
name: watch-app
86+
path: fastlane/DerivedData/Build/Products/Debug-watchsimulator/Woo Watch App.app
87+
88+
- name: Download Screenshot Runner
89+
uses: actions/download-artifact@v4
90+
with:
91+
name: screenshot-runner
92+
path: fastlane/DerivedData/Build/Products/Debug-iphonesimulator/WooCommerceScreenshots-Runner.app
6993

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

105+
- name: Store test results
106+
if: always()
107+
uses: actions/upload-artifact@v4
108+
with:
109+
name: "test-results-${{ matrix.language }}-${{ matrix.mode }}"
110+
path: fastlane/screenshots/test_output
111+
81112
- name: Archive Generated Screenshots
82113
run: |
83114
cd fastlane && mkdir $GITHUB_RUN_ID && mv screenshots $GITHUB_RUN_ID

0 commit comments

Comments
 (0)