Skip to content

Commit

Permalink
Save Darwin framework test logs in artifacts (#11284)
Browse files Browse the repository at this point in the history
* Save Darwin framework test logs in artifacts

* upload logs only on failure
  • Loading branch information
pan-apple authored and pull[bot] committed May 25, 2022
1 parent d801160 commit 18ddc2e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ jobs:
- name: Run Framework Tests
timeout-minutes: 10
run: |
../../../out/debug/chip-all-clusters-app &
xcodebuild test -target "CHIP" -scheme "CHIP Framework Tests" -sdk macosx
mkdir -p /tmp/darwin/framework-tests
../../../out/debug/chip-all-clusters-app > >(tee /tmp/darwin/framework-tests/all-cluster-app.log) 2> >(tee /tmp/darwin/framework-tests/all-cluster-app-err.log >&2) &
xcodebuild test -target "CHIP" -scheme "CHIP Framework Tests" -sdk macosx > >(tee /tmp/darwin/framework-tests/darwin-tests.log) 2> >(tee /tmp/darwin/framework-tests/darwin-tests-err.log >&2)
working-directory: src/darwin/Framework
- name: Uploading log files
uses: actions/upload-artifact@v2
if: ${{ failure() }} && ${{ !env.ACT }}
with:
name: darwin-framework-test-logs
path: /tmp/darwin/framework-tests
retention-days: 5

0 comments on commit 18ddc2e

Please sign in to comment.