We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c439b67 commit bbbe2a1Copy full SHA for bbbe2a1
1 file changed
.github/workflows/pr-tests.yml
@@ -34,6 +34,8 @@ jobs:
34
runs-on: macos-latest
35
timeout-minutes: 20
36
continue-on-error: true
37
+ env:
38
+ SNAPSHOT_ARTIFACTS: ${{ github.workspace }}/.snapshot-artifacts
39
steps:
40
- name: Checkout
41
uses: actions/checkout@v4
@@ -49,4 +51,14 @@ jobs:
49
51
- name: Run snapshot tests
50
52
run: |
53
set -o pipefail
- swift test --filter TextDiffSnapshotTests 2>&1 | xcsift --warnings
54
+ mkdir -p "$SNAPSHOT_ARTIFACTS"
55
+ swift test --filter TextDiffSnapshotTests 2>&1 | tee "$SNAPSHOT_ARTIFACTS/swift-test.log" | xcsift --warnings
56
+
57
+ - name: Upload snapshot artifacts
58
+ if: always()
59
+ uses: actions/upload-artifact@v4
60
+ with:
61
+ name: snapshot-artifacts
62
+ path: ${{ env.SNAPSHOT_ARTIFACTS }}
63
+ if-no-files-found: warn
64
+ retention-days: 7
0 commit comments