Skip to content

Commit 7b36c93

Browse files
committed
test: add tests for structured concurrency-GCD bridge
1 parent 51b302e commit 7b36c93

File tree

12 files changed

+160
-33
lines changed

12 files changed

+160
-33
lines changed

.github/workflows/swift-package.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ on:
66
jobs:
77
# Test package with swift 5.6 on linux and windows
88
swift-package:
9-
name: Run Swift Package Tests with swift version ${{ matrix.swift }}
10-
runs-on: ubuntu-latest
9+
name: Run Swift Package Tests on ${{ matrix.os }} with swift version ${{ matrix.swift }}
10+
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
os: [ubuntu-latest, windows-latest]
13+
os: [macos-12, ubuntu-latest, windows-latest]
1414
swift: ['5.6']
1515

1616
steps:
@@ -33,6 +33,7 @@ jobs:
3333
uses: ./.github/actions/setup
3434
with:
3535
swift: ${{ matrix.swift }}
36+
xcode: latest
3637

3738
- name: Run tests
3839
if: steps.precondition.outputs.proceed == 'true'
@@ -42,6 +43,7 @@ jobs:
4243
if: |
4344
steps.precondition.outputs.proceed == 'true' &&
4445
matrix.swift == '5.6' &&
46+
matrix.os == 'macos-latest' &&
4547
github.event_name == 'push'
4648
uses: maxep/[email protected]
4749
with:
@@ -52,6 +54,7 @@ jobs:
5254
if: |
5355
steps.precondition.outputs.proceed == 'true' &&
5456
matrix.swift == '5.6' &&
57+
matrix.os == 'macos-latest' &&
5558
github.event_name == 'push'
5659
uses: codecov/[email protected]
5760
with:

Scripts/archive.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env node
2-
const fs = require('node:fs');
3-
const path = require('node:path');
4-
const process = require('node:process');
5-
const { execSync } = require('node:child_process');
2+
const fs = require('fs');
3+
const path = require('path');
4+
const process = require('process');
5+
const { execSync } = require('child_process');
66
const archiver = require('archiver');
77
const readdirGlob = require('readdir-glob');
88
const core = require('@actions/core');

Scripts/build-doc.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/usr/bin/env node
2-
const fs = require('node:fs');
3-
const path = require('node:path');
4-
const process = require('node:process');
2+
const fs = require('fs');
3+
const path = require('path');
4+
const process = require('process');
55
const archiver = require('archiver');
66
const readdirGlob = require('readdir-glob');
7-
const { execSync } = require('node:child_process');
7+
const { execSync } = require('child_process');
88
const core = require('@actions/core');
99

1010
const package = JSON.parse(fs.readFileSync('package.json', 'utf8'));

Scripts/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
2-
const process = require('node:process');
3-
const { execSync } = require('node:child_process');
2+
const process = require('process');
3+
const { execSync } = require('child_process');
44
const core = require('@actions/core');
55

66
const args = process.argv.slice(2).join(' ');

Scripts/generate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
2-
const fs = require('node:fs');
3-
const { execSync } = require('node:child_process');
2+
const fs = require('fs');
3+
const { execSync } = require('child_process');
44
const readdirGlob = require('readdir-glob');
55
const core = require('@actions/core');
66
const plist = require('plist');

Scripts/pod-lint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env node
2-
const { execSync } = require('node:child_process');
2+
const { execSync } = require('child_process');
33
const core = require('@actions/core');
44

55
const command = 'pod lib lint --no-clean --allow-warnings --verbose';

Scripts/preview-doc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env node
2-
const { exec } = require('node:child_process');
2+
const { exec } = require('child_process');
33
const open = require('open');
44

55
const process = exec(

Scripts/serve-doc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
2-
const fs = require('node:fs');
3-
const { execSync } = require('node:child_process');
2+
const fs = require('fs');
3+
const { execSync } = require('child_process');
44
const core = require('@actions/core');
55

66
const hostingDocGenCommandFormat = (basePath, outPath) =>

Scripts/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
2-
const process = require('node:process');
3-
const { execSync } = require('node:child_process');
2+
const process = require('process');
3+
const { execSync } = require('child_process');
44
const core = require('@actions/core');
55

66
const args = process.argv.slice(2).join(' ');

Sources/AsyncObjects/TaskOperation.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ public final class TaskOperation<R: Sendable>: Operation, AsyncObject,
2222
/// on behalf of the actor where operation started.
2323
private var execTask: Task<R, Error>?
2424

25-
/// A Boolean value indicating whether the operation executes its task asynchronously.
26-
///
27-
/// Always returns true, since the operation always executes its task asynchronously.
28-
public override var isConcurrent: Bool { true }
2925
/// A Boolean value indicating whether the operation executes its task asynchronously.
3026
///
3127
/// Always returns true, since the operation always executes its task asynchronously.

0 commit comments

Comments
 (0)