|
20 | 20 |
|
21 | 21 | tests: |
22 | 22 | name: Test |
23 | | - uses: ./.github/workflows/swift_package_test.yml |
| 23 | + uses: award999/github-workflows/.github/workflows/swift_package_test.yml@dockerless-windows |
24 | 24 | with: |
25 | 25 | # Linux |
26 | 26 | linux_exclude_swift_versions: '[{"swift_version": "nightly-main"}]' |
|
41 | 41 | # Windows |
42 | 42 | enable_windows_checks: true |
43 | 43 | enable_windows_docker: false |
44 | | - windows_exclude_swift_versions: '[{"swift_version": "nightly-main"}]' |
| 44 | + windows_exclude_swift_versions: '[{"swift_version": "nightly"}]' |
45 | 45 | windows_env_vars: | |
46 | 46 | CI=1 |
47 | 47 | FAST_TEST_RUN=1 |
48 | 48 | windows_pre_build_command: .github\workflows\scripts\windows\install-nodejs.ps1 |
49 | 49 | 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