mirror of
https://github.com/apple/swift-nio
synced 2026-11-27 05:04:22 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.2 to 7.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/checkout/releases">actions/checkout's releases</a>.</em></p> <blockquote> <h2>v7.0.0</h2> <h2>What's Changed</h2> <ul> <li>block checking out fork pr for pull_request_target and workflow_run by <a href="https://github.com/aiqiaoy"><code>@aiqiaoy</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2454">actions/checkout#2454</a></li> <li>Bump actions/publish-immutable-action from 0.0.3 to 0.0.4 in the minor-actions-dependencies group across 1 directory by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/actions/checkout/pull/2458">actions/checkout#2458</a></li> <li>Bump flatted from 3.3.1 to 3.4.2 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/actions/checkout/pull/2460">actions/checkout#2460</a></li> <li>Bump js-yaml from 4.1.0 to 4.2.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/actions/checkout/pull/2461">actions/checkout#2461</a></li> <li>Bump <code>@actions/core</code> and <code>@actions/tool-cache</code> and Remove uuid by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/actions/checkout/pull/2459">actions/checkout#2459</a></li> <li>upgrade module to esm and update dependencies by <a href="https://github.com/aiqiaoy"><code>@aiqiaoy</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2463">actions/checkout#2463</a></li> <li>Bump the minor-npm-dependencies group across 1 directory with 3 updates by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/actions/checkout/pull/2462">actions/checkout#2462</a></li> <li>getting ready for checkout v7 release by <a href="https://github.com/aiqiaoy"><code>@aiqiaoy</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2464">actions/checkout#2464</a></li> <li>update error wording by <a href="https://github.com/aiqiaoy"><code>@aiqiaoy</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2467">actions/checkout#2467</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/aiqiaoy"><code>@aiqiaoy</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/2454">actions/checkout#2454</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/checkout/compare/v6.0.3...v7.0.0">https://github.com/actions/checkout/compare/v6.0.3...v7.0.0</a></p> <h2>v6.0.3</h2> <h2>What's Changed</h2> <ul> <li>Update changelog by <a href="https://github.com/ericsciple"><code>@ericsciple</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2357">actions/checkout#2357</a></li> <li>fix: expand merge commit SHA regex and add SHA-256 test cases by <a href="https://github.com/yaananth"><code>@yaananth</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2414">actions/checkout#2414</a></li> <li>Fix checkout init for SHA-256 repositories by <a href="https://github.com/yaananth"><code>@yaananth</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2439">actions/checkout#2439</a></li> <li>Update changelog for v6.0.3 by <a href="https://github.com/yaananth"><code>@yaananth</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2446">actions/checkout#2446</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/yaananth"><code>@yaananth</code></a> made their first contribution in <a href="https://redirect.github.com/actions/checkout/pull/2414">actions/checkout#2414</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/checkout/compare/v6...v6.0.3">https://github.com/actions/checkout/compare/v6...v6.0.3</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/actions/checkout/blob/main/CHANGELOG.md">actions/checkout's changelog</a>.</em></p> <blockquote> <h1>Changelog</h1> <h2>v7.0.0</h2> <ul> <li>Block checking out fork PR for pull_request_target and workflow_run by <a href="https://github.com/aiqiaoy"><code>@aiqiaoy</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2454">actions/checkout#2454</a></li> <li>Bump actions/publish-immutable-action from 0.0.3 to 0.0.4 in the minor-actions-dependencies group across 1 directory by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/actions/checkout/pull/2458">actions/checkout#2458</a></li> <li>Bump flatted from 3.3.1 to 3.4.2 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/actions/checkout/pull/2460">actions/checkout#2460</a></li> <li>Bump js-yaml from 4.1.0 to 4.2.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/actions/checkout/pull/2461">actions/checkout#2461</a></li> <li>Bump <code>@actions/core</code> and <code>@actions/tool-cache</code> and Remove uuid by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/actions/checkout/pull/2459">actions/checkout#2459</a></li> <li>upgrade module to esm and update dependencies by <a href="https://github.com/aiqiaoy"><code>@aiqiaoy</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2463">actions/checkout#2463</a></li> <li>Bump the minor-npm-dependencies group across 1 directory with 3 updates by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/actions/checkout/pull/2462">actions/checkout#2462</a></li> </ul> <h2>v6.0.3</h2> <ul> <li>Fix checkout init for SHA-256 repositories by <a href="https://github.com/yaananth"><code>@yaananth</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2439">actions/checkout#2439</a></li> <li>fix: expand merge commit SHA regex and add SHA-256 test cases by <a href="https://github.com/yaananth"><code>@yaananth</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2414">actions/checkout#2414</a></li> </ul> <h2>v6.0.2</h2> <ul> <li>Fix tag handling: preserve annotations and explicit fetch-tags by <a href="https://github.com/ericsciple"><code>@ericsciple</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2356">actions/checkout#2356</a></li> </ul> <h2>v6.0.1</h2> <ul> <li>Add worktree support for persist-credentials includeIf by <a href="https://github.com/ericsciple"><code>@ericsciple</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2327">actions/checkout#2327</a></li> </ul> <h2>v6.0.0</h2> <ul> <li>Persist creds to a separate file by <a href="https://github.com/ericsciple"><code>@ericsciple</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2286">actions/checkout#2286</a></li> <li>Update README to include Node.js 24 support details and requirements by <a href="https://github.com/salmanmkc"><code>@salmanmkc</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2248">actions/checkout#2248</a></li> </ul> <h2>v5.0.1</h2> <ul> <li>Port v6 cleanup to v5 by <a href="https://github.com/ericsciple"><code>@ericsciple</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2301">actions/checkout#2301</a></li> </ul> <h2>v5.0.0</h2> <ul> <li>Update actions checkout to use node 24 by <a href="https://github.com/salmanmkc"><code>@salmanmkc</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2226">actions/checkout#2226</a></li> </ul> <h2>v4.3.1</h2> <ul> <li>Port v6 cleanup to v4 by <a href="https://github.com/ericsciple"><code>@ericsciple</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2305">actions/checkout#2305</a></li> </ul> <h2>v4.3.0</h2> <ul> <li>docs: update README.md by <a href="https://github.com/motss"><code>@motss</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1971">actions/checkout#1971</a></li> <li>Add internal repos for checking out multiple repositories by <a href="https://github.com/mouismail"><code>@mouismail</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1977">actions/checkout#1977</a></li> <li>Documentation update - add recommended permissions to Readme by <a href="https://github.com/benwells"><code>@benwells</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2043">actions/checkout#2043</a></li> <li>Adjust positioning of user email note and permissions heading by <a href="https://github.com/joshmgross"><code>@joshmgross</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2044">actions/checkout#2044</a></li> <li>Update README.md by <a href="https://github.com/nebuk89"><code>@nebuk89</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2194">actions/checkout#2194</a></li> <li>Update CODEOWNERS for actions by <a href="https://github.com/TingluoHuang"><code>@TingluoHuang</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2224">actions/checkout#2224</a></li> <li>Update package dependencies by <a href="https://github.com/salmanmkc"><code>@salmanmkc</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2236">actions/checkout#2236</a></li> </ul> <h2>v4.2.2</h2> <ul> <li><code>url-helper.ts</code> now leverages well-known environment variables by <a href="https://github.com/jww3"><code>@jww3</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1941">actions/checkout#1941</a></li> <li>Expand unit test coverage for <code>isGhes</code> by <a href="https://github.com/jww3"><code>@jww3</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1946">actions/checkout#1946</a></li> </ul> <h2>v4.2.1</h2> <ul> <li>Check out other refs/* by commit if provided, fall back to ref by <a href="https://github.com/orhantoy"><code>@orhantoy</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1924">actions/checkout#1924</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/actions/checkout/commit/9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0"><code>9c091bb</code></a> update error wording (<a href="https://redirect.github.com/actions/checkout/issues/2467">#2467</a>)</li> <li><a href="https://github.com/actions/checkout/commit/1044a6dea927916f2c38ba5aeffbc0a847b1221a"><code>1044a6d</code></a> getting ready for checkout v7 release (<a href="https://redirect.github.com/actions/checkout/issues/2464">#2464</a>)</li> <li><a href="https://github.com/actions/checkout/commit/f0282184c7ce73ab54c7e4ab5a617122602e575f"><code>f028218</code></a> Bump the minor-npm-dependencies group across 1 directory with 3 updates (<a href="https://redirect.github.com/actions/checkout/issues/2462">#2462</a>)</li> <li><a href="https://github.com/actions/checkout/commit/d914b262ffc244530a203ab40decab34c3abf34d"><code>d914b26</code></a> upgrade module to esm and update dependencies (<a href="https://redirect.github.com/actions/checkout/issues/2463">#2463</a>)</li> <li><a href="https://github.com/actions/checkout/commit/537c7ef99cef6e5ddb5e7ff5d16d14510503801d"><code>537c7ef</code></a> Bump <code>@actions/core</code> and <code>@actions/tool-cache</code> and Remove uuid (<a href="https://redirect.github.com/actions/checkout/issues/2459">#2459</a>)</li> <li><a href="https://github.com/actions/checkout/commit/130a169078a413d3a5246a393625e8e742f387f6"><code>130a169</code></a> Bump js-yaml from 4.1.0 to 4.2.0 (<a href="https://redirect.github.com/actions/checkout/issues/2461">#2461</a>)</li> <li><a href="https://github.com/actions/checkout/commit/7d09575332117a40b46e5e020664df234cd416f3"><code>7d09575</code></a> Bump flatted from 3.3.1 to 3.4.2 (<a href="https://redirect.github.com/actions/checkout/issues/2460">#2460</a>)</li> <li><a href="https://github.com/actions/checkout/commit/0f9f3aa320cb53abeb534aeb54048075d9697a0e"><code>0f9f3aa</code></a> Bump actions/publish-immutable-action (<a href="https://redirect.github.com/actions/checkout/issues/2458">#2458</a>)</li> <li><a href="https://github.com/actions/checkout/commit/f9e715a95fcd1f9253f77dd28f11e88d2d6460c7"><code>f9e715a</code></a> block checking out fork pr for pull_request_target and workflow_run (<a href="https://redirect.github.com/actions/checkout/issues/2454">#2454</a>)</li> <li><a href="https://github.com/actions/checkout/commit/df4cb1c069e1874edd31b4311f1884172cec0e10"><code>df4cb1c</code></a> Update changelog for v6.0.3 (<a href="https://redirect.github.com/actions/checkout/issues/2446">#2446</a>)</li> <li>Additional commits viewable in <a href="https://github.com/actions/checkout/compare/de0fac2e4500dabe0009e67214ff5f5447ce83dd...9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
243 lines
11 KiB
YAML
243 lines
11 KiB
YAML
name: Unit tests
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
linux_5_9_enabled:
|
|
type: boolean
|
|
description: "Boolean to enable the Linux 5.9 Swift version matrix job. Defaults to false."
|
|
default: false
|
|
linux_5_9_arguments_override:
|
|
type: string
|
|
description: "The arguments passed to swift test in the Linux 5.9 Swift version matrix job."
|
|
default: ""
|
|
linux_5_10_enabled:
|
|
type: boolean
|
|
description: "Boolean to enable the Linux 5.10 Swift version matrix job. Defaults to false."
|
|
default: false
|
|
linux_5_10_arguments_override:
|
|
type: string
|
|
description: "The arguments passed to swift test in the Linux 5.10 Swift version matrix job."
|
|
default: ""
|
|
linux_6_0_enabled:
|
|
type: boolean
|
|
description: "Boolean to enable the Linux 6.0 Swift version matrix job. Defaults to true."
|
|
default: true
|
|
linux_6_0_arguments_override:
|
|
type: string
|
|
description: "The arguments passed to swift test in the Linux 6.0 Swift version matrix job."
|
|
default: ""
|
|
linux_6_1_enabled:
|
|
type: boolean
|
|
description: "Boolean to enable the Linux 6.1 Swift version matrix job. Defaults to true."
|
|
default: true
|
|
linux_6_1_arguments_override:
|
|
type: string
|
|
description: "The arguments passed to swift test in the Linux 6.1 Swift version matrix job."
|
|
default: ""
|
|
linux_6_2_enabled:
|
|
type: boolean
|
|
description: "Boolean to enable the Linux 6.2 Swift version matrix job. Defaults to true."
|
|
default: true
|
|
linux_6_2_arguments_override:
|
|
type: string
|
|
description: "The arguments passed to swift test in the Linux 6.2 Swift version matrix job."
|
|
default: ""
|
|
linux_6_3_enabled:
|
|
type: boolean
|
|
description: "Boolean to enable the Linux 6.3 Swift version matrix job. Defaults to true."
|
|
default: true
|
|
linux_6_3_arguments_override:
|
|
type: string
|
|
description: "The arguments passed to swift test in the Linux 6.3 Swift version matrix job."
|
|
default: ""
|
|
linux_nightly_6_0_enabled:
|
|
type: boolean
|
|
description: "⚠️ Deprecated, we no longer run against 6.0 nightly."
|
|
default: true
|
|
linux_nightly_6_0_arguments_override:
|
|
type: string
|
|
description: "⚠️ Deprecated, we no longer run against 6.0 nightly."
|
|
default: ""
|
|
linux_nightly_6_1_enabled:
|
|
type: boolean
|
|
description: "⚠️ Deprecated, use linux_nightly_next_enabled."
|
|
default: true
|
|
linux_nightly_6_1_arguments_override:
|
|
type: string
|
|
description: "⚠️ Deprecated, use linux_nightly_next_arguments_override."
|
|
default: ""
|
|
linux_nightly_next_enabled:
|
|
type: boolean
|
|
description: "Boolean to enable the Linux matrix job using the nightly build for the next Swift version. Defaults to true."
|
|
default: true
|
|
linux_nightly_next_arguments_override:
|
|
type: string
|
|
description: "The arguments passed to swift test in the Linux matrix job using the nightly build for the next Swift version."
|
|
default: ""
|
|
linux_nightly_main_enabled:
|
|
type: boolean
|
|
description: "Boolean to enable the Linux nightly main Swift version matrix job. Defaults to true."
|
|
default: true
|
|
linux_nightly_main_arguments_override:
|
|
type: string
|
|
description: "The arguments passed to swift test in the Linux nightly main Swift version matrix job."
|
|
default: ""
|
|
|
|
windows_6_0_enabled:
|
|
type: boolean
|
|
description: "Boolean to enable the Windows 6.0 Swift version matrix job. Defaults to false."
|
|
default: false
|
|
windows_6_0_arguments_override:
|
|
type: string
|
|
description: "The arguments passed to swift test in the Windows 6.0 Swift version matrix job."
|
|
default: ""
|
|
windows_6_1_enabled:
|
|
type: boolean
|
|
description: "Boolean to enable the Windows 6.1 Swift version matrix job. Defaults to false."
|
|
default: false
|
|
windows_6_1_arguments_override:
|
|
type: string
|
|
description: "The arguments passed to swift test in the Windows 6.1 Swift version matrix job."
|
|
default: ""
|
|
windows_6_2_enabled:
|
|
type: boolean
|
|
description: "Boolean to enable the Windows 6.2 Swift version matrix job. Defaults to false."
|
|
default: false
|
|
windows_6_2_arguments_override:
|
|
type: string
|
|
description: "The arguments passed to swift test in the Windows 6.2 Swift version matrix job."
|
|
default: ""
|
|
windows_6_3_enabled:
|
|
type: boolean
|
|
description: "Boolean to enable the Windows 6.3 Swift version matrix job. Defaults to false."
|
|
default: false
|
|
windows_6_3_arguments_override:
|
|
type: string
|
|
description: "The arguments passed to swift test in the Windows 6.3 Swift version matrix job."
|
|
default: ""
|
|
windows_nightly_6_0_enabled:
|
|
type: boolean
|
|
description: "⚠️ Deprecated, we no longer run against 6.0 nightly."
|
|
default: false
|
|
windows_nightly_6_0_arguments_override:
|
|
type: string
|
|
description: "⚠️ Deprecated, we no longer run against 6.0 nightly."
|
|
default: ""
|
|
windows_nightly_6_1_enabled:
|
|
type: boolean
|
|
description: "⚠️ Deprecated, use windows_nightly_next_enabled."
|
|
default: false
|
|
windows_nightly_6_1_arguments_override:
|
|
type: string
|
|
description: "⚠️ Deprecated, use windows_nightly_next_arguments_override."
|
|
default: ""
|
|
windows_nightly_next_enabled:
|
|
type: boolean
|
|
description: "Boolean to enable the Windows matrix job using the nightly build for the next Swift version. Defaults to false."
|
|
default: false
|
|
windows_nightly_next_arguments_override:
|
|
type: string
|
|
description: "The arguments passed to swift test in the Windows matrix job using the nightly build for the next Swift version."
|
|
default: ""
|
|
windows_nightly_main_enabled:
|
|
type: boolean
|
|
description: "Boolean to enable the Windows nightly main Swift version matrix job. Defaults to false."
|
|
default: false
|
|
windows_nightly_main_arguments_override:
|
|
type: string
|
|
description: "The arguments passed to swift test in the Windows nightly main Swift version matrix job."
|
|
default: ""
|
|
|
|
linux_env_vars:
|
|
type: string
|
|
description: "Environment variables for Linux jobs as JSON (e.g., '{\"DEBUG\":\"1\",\"LOG_LEVEL\":\"info\"}')."
|
|
default: "{}"
|
|
windows_env_vars:
|
|
type: string
|
|
description: "Environment variables for Windows jobs as JSON (e.g., '{\"DEBUG\":\"1\",\"LOG_LEVEL\":\"info\"}')."
|
|
default: "{}"
|
|
|
|
minimum_swift_version:
|
|
type: string
|
|
description: "Minimum Swift version to include in the matrix. Leave empty for auto-detection from Package.swift, specify a version like '6.0' to override, or set to 'none' to disable filtering."
|
|
default: ""
|
|
|
|
jobs:
|
|
construct-matrix:
|
|
name: Construct unit test matrix
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
unit-test-matrix: '${{ steps.generate-matrix.outputs.unit-test-matrix }}'
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
with:
|
|
persist-credentials: false
|
|
- id: generate-matrix
|
|
run: |
|
|
# Validate and use JSON environment variables directly
|
|
linux_env_vars_json="$INPUT_LINUX_ENV_VARS"
|
|
windows_env_vars_json="$INPUT_WINDOWS_ENV_VARS"
|
|
|
|
# Validate JSON format
|
|
if ! echo "$linux_env_vars_json" | jq empty 2>/dev/null; then
|
|
echo "Error: linux_env_vars is not valid JSON"
|
|
exit 1
|
|
fi
|
|
|
|
if ! echo "$windows_env_vars_json" | jq empty 2>/dev/null; then
|
|
echo "Error: windows_env_vars is not valid JSON"
|
|
exit 1
|
|
fi
|
|
|
|
# Generate matrix
|
|
echo "unit-test-matrix=$(curl -s --retry 3 https://raw.githubusercontent.com/apple/swift-nio/main/scripts/generate_matrix.sh | MATRIX_LINUX_ENV_VARS_JSON="${linux_env_vars_json}" MATRIX_WINDOWS_ENV_VARS_JSON="${windows_env_vars_json}" bash)" >> "$GITHUB_OUTPUT"
|
|
env:
|
|
INPUT_LINUX_ENV_VARS: ${{ inputs.linux_env_vars }}
|
|
INPUT_WINDOWS_ENV_VARS: ${{ inputs.windows_env_vars }}
|
|
MATRIX_LINUX_SETUP_COMMAND: "swift --version"
|
|
MATRIX_LINUX_COMMAND: "swift test"
|
|
MATRIX_MIN_SWIFT_VERSION: ${{ inputs.minimum_swift_version }}
|
|
MATRIX_LINUX_5_9_ENABLED: ${{ inputs.linux_5_9_enabled }}
|
|
MATRIX_LINUX_5_9_COMMAND_ARGUMENTS: ${{ inputs.linux_5_9_arguments_override }}
|
|
MATRIX_LINUX_5_10_ENABLED: ${{ inputs.linux_5_10_enabled }}
|
|
MATRIX_LINUX_5_10_COMMAND_ARGUMENTS: ${{ inputs.linux_5_10_arguments_override }}
|
|
MATRIX_LINUX_6_0_ENABLED: ${{ inputs.linux_6_0_enabled }}
|
|
MATRIX_LINUX_6_0_COMMAND_ARGUMENTS: ${{ inputs.linux_6_0_arguments_override }}
|
|
MATRIX_LINUX_6_1_ENABLED: ${{ inputs.linux_6_1_enabled }}
|
|
MATRIX_LINUX_6_1_COMMAND_ARGUMENTS: ${{ inputs.linux_6_1_arguments_override }}
|
|
MATRIX_LINUX_6_2_ENABLED: ${{ inputs.linux_6_2_enabled }}
|
|
MATRIX_LINUX_6_2_COMMAND_ARGUMENTS: ${{ inputs.linux_6_2_arguments_override }}
|
|
MATRIX_LINUX_6_3_ENABLED: ${{ inputs.linux_6_3_enabled }}
|
|
MATRIX_LINUX_6_3_COMMAND_ARGUMENTS: ${{ inputs.linux_6_3_arguments_override }}
|
|
MATRIX_LINUX_NIGHTLY_NEXT_ENABLED: ${{ inputs.linux_nightly_next_enabled }}
|
|
MATRIX_LINUX_NIGHTLY_NEXT_COMMAND_ARGUMENTS: ${{ inputs.linux_nightly_6_1_arguments_override }} ${{ inputs.linux_nightly_next_arguments_override }}
|
|
MATRIX_LINUX_NIGHTLY_MAIN_ENABLED: ${{ inputs.linux_nightly_main_enabled }}
|
|
MATRIX_LINUX_NIGHTLY_MAIN_COMMAND_ARGUMENTS: ${{ inputs.linux_nightly_main_arguments_override }}
|
|
MATRIX_WINDOWS_COMMAND: "swift test"
|
|
MATRIX_WINDOWS_6_0_ENABLED: ${{ inputs.windows_6_0_enabled }}
|
|
MATRIX_WINDOWS_6_0_COMMAND_ARGUMENTS: ${{ inputs.windows_6_0_arguments_override }}
|
|
MATRIX_WINDOWS_6_1_ENABLED: ${{ inputs.windows_6_1_enabled }}
|
|
MATRIX_WINDOWS_6_1_COMMAND_ARGUMENTS: ${{ inputs.windows_6_1_arguments_override }}
|
|
MATRIX_WINDOWS_6_2_ENABLED: ${{ inputs.windows_6_2_enabled }}
|
|
MATRIX_WINDOWS_6_2_COMMAND_ARGUMENTS: ${{ inputs.windows_6_2_arguments_override }}
|
|
MATRIX_WINDOWS_6_3_ENABLED: ${{ inputs.windows_6_3_enabled }}
|
|
MATRIX_WINDOWS_6_3_COMMAND_ARGUMENTS: ${{ inputs.windows_6_3_arguments_override }}
|
|
MATRIX_WINDOWS_NIGHTLY_NEXT_ENABLED: ${{ inputs.windows_nightly_6_1_enabled || inputs.windows_nightly_next_enabled }}
|
|
MATRIX_WINDOWS_NIGHTLY_NEXT_COMMAND_ARGUMENTS: ${{ inputs.windows_nightly_6_1_arguments_override }} ${{ inputs.windows_nightly_next_arguments_override }}
|
|
MATRIX_WINDOWS_NIGHTLY_MAIN_ENABLED: ${{ inputs.windows_nightly_main_enabled }}
|
|
MATRIX_WINDOWS_NIGHTLY_MAIN_COMMAND_ARGUMENTS: ${{ inputs.windows_nightly_main_arguments_override }}
|
|
|
|
unit-tests:
|
|
name: Unit tests
|
|
needs: construct-matrix
|
|
# Workaround https://github.com/nektos/act/issues/1875
|
|
uses: apple/swift-nio/.github/workflows/swift_test_matrix.yml@main
|
|
with:
|
|
name: "Unit tests"
|
|
matrix_string: '${{ needs.construct-matrix.outputs.unit-test-matrix }}'
|