Skip to content

Commit c439b67

Browse files
committed
ci: run snapshot suite in separate parallel job
1 parent c406af6 commit c439b67

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

.github/workflows/pr-tests.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010
contents: read
1111

1212
jobs:
13-
test:
13+
core-tests:
1414
runs-on: macos-latest
1515
timeout-minutes: 20
1616
steps:
@@ -29,3 +29,24 @@ jobs:
2929
run: |
3030
set -o pipefail
3131
swift test --skip TextDiffSnapshotTests 2>&1 | xcsift --warnings
32+
33+
snapshot-tests:
34+
runs-on: macos-latest
35+
timeout-minutes: 20
36+
continue-on-error: true
37+
steps:
38+
- name: Checkout
39+
uses: actions/checkout@v4
40+
41+
- name: Select latest stable Xcode
42+
uses: maxim-lobanov/setup-xcode@v1
43+
with:
44+
xcode-version: "latest-stable"
45+
46+
- name: Install xcsift
47+
run: brew install xcsift
48+
49+
- name: Run snapshot tests
50+
run: |
51+
set -o pipefail
52+
swift test --filter TextDiffSnapshotTests 2>&1 | xcsift --warnings

0 commit comments

Comments
 (0)