2020
2121 tests :
2222 name : Test
23- uses : ./ .github/workflows/swift_package_test.yml
23+ uses : award999/github-workflows/ .github/workflows/swift_package_test.yml@dockerless-windows
2424 with :
2525 # Linux
2626 linux_exclude_swift_versions : ' [{"swift_version": "nightly-main"}]'
@@ -37,42 +37,13 @@ jobs:
3737 /bin/bash -c "source $NVM_DIR/nvm.sh && nvm install $NODE_VERSION"
3838 echo "$NODE_PATH" >> $GITHUB_PATH
3939 linux_build_command : ./docker/test.sh
40- enable_linux_checks : false
40+ enable_linux_checks : true
4141 # Windows
4242 enable_windows_checks : true
4343 enable_windows_docker : false
44- windows_exclude_swift_versions : ' [{"swift_version": "nightly-main "}]'
44+ windows_exclude_swift_versions : ' [{"swift_version": "nightly"}]'
4545 windows_env_vars : |
4646 CI=1
4747 FAST_TEST_RUN=1
4848 windows_pre_build_command : .github\workflows\scripts\windows\install-nodejs.ps1
4949 windows_build_command : docker\test-windows.ps1
50-
51- tests-windows :
52- defaults :
53- run :
54- shell : powershell
55- name : Windows (${{ matrix.swift_version }})
56- runs-on : ${{ contains(matrix.swift_version, 'nightly') && 'windows-2019' || 'windows-2022' }}
57- strategy :
58- fail-fast : false
59- matrix :
60- swift_version : ['5.9', '5.10', '6.0', 'nightly', 'nightly-6.0']
61- steps :
62- - name : Checkout repository
63- uses : actions/checkout@v4
64- - name : Install node.js
65- if : ${{ !vars.skip_nodejs_install }}
66- run : . .github\workflows\scripts\windows\install-nodejs.ps1
67- - name : Install Visual Studio Build Tools
68- if : ${{ !vars.skip_vsb_install }}
69- run : . .github\workflows\scripts\windows\install-vsb.ps1
70- - name : Install Swift
71- if : ${{ !vars.skip_swift_install }}
72- run : . .github\workflows\scripts\windows\swift\install-swift-${{ matrix.swift_version }}.ps1
73- - name : Build / Test
74- run : |
75- cd $env:GITHUB_WORKSPACE
76- Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
77- refreshenv
78- docker\test-windows.ps1
0 commit comments