Skip to content

Commit 1e024f2

Browse files
committed
Add --no-parallel flag to Swift test commands for consistent test execution
1 parent 8a6ac0d commit 1e024f2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎.github/workflows/swift.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Build
1818
run: ${{ matrix.options }} swift build -c ${{ matrix.config }}
1919
- name: Test
20-
run: ${{ matrix.options }} swift test -c ${{ matrix.config }}
20+
run: ${{ matrix.options }} swift test -c ${{ matrix.config }} --no-parallel
2121

2222
coverage:
2323
name: Code Coverage
@@ -74,7 +74,7 @@ jobs:
7474
- name: Build
7575
run: ${{ matrix.options }} swift build -c ${{ matrix.config }}
7676
- name: Test
77-
run: ${{ matrix.options }} swift test -c ${{ matrix.config }}
77+
run: ${{ matrix.options }} swift test -c ${{ matrix.config }} --no-parallel
7878

7979
skip-fuse:
8080
name: Skip Fuse (Android)

‎Scripts/coverage.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ fi
4545
# 1. Run the tests with coverage instrumentation.
4646
if [ "${SKIP_TEST:-0}" != "1" ]; then
4747
echo "==> Running tests with code coverage"
48-
swift test --enable-code-coverage
48+
swift test --enable-code-coverage --no-parallel
4949
fi
5050

5151
# 2. Locate the coverage artifacts SwiftPM produced.

0 commit comments

Comments
 (0)