Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/repo-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,46 @@ on:
workflow_call:

jobs:
windows-setup:
name: Windows setup (${{ matrix.shell }})
runs-on: windows-latest
timeout-minutes: 10
permissions:
contents: read
strategy:
fail-fast: false
matrix:
shell: [powershell, pwsh]
defaults:
run:
shell: ${{ matrix.shell }}
env:
RUSTUP_AUTO_INSTALL: "0"
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Setup Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.12"

- name: Download Pester for this runner
shell: pwsh
run: Save-Module -Name Pester -RequiredVersion 5.7.1 -Repository PSGallery -Path "$env:RUNNER_TEMP/windows-setup-tests" -Force

- name: Test Windows setup with mocked installers
run: |
Import-Module "$env:RUNNER_TEMP/windows-setup-tests/Pester/5.7.1/Pester.psd1" -Force
$result = Invoke-Pester -Path ./codex-rs/scripts/setup-windows.Tests.ps1 -PassThru -Output Normal
if ($result.FailedCount -ne 0 -or $result.PassedCount -eq 0) { throw 'Windows setup tests failed or did not run.' }

- name: Check for a clean worktree
if: always() && !cancelled()
uses: ./.github/actions/check-clean-worktree

build-test:
runs-on: ubuntu-latest
timeout-minutes: 10
Expand Down
Loading
Loading