Add NativeAOT credential result sink #325
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Smoke tests | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| tags-ignore: | |
| - "v*" | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| scoped-install-smoke: | |
| name: Smoke tests (${{ matrix.name }}) | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 90 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: windows | |
| os: windows-latest | |
| - name: macos | |
| os: macos-14 | |
| - name: linux | |
| os: ubuntu-latest | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| MULTI_PWSH_CACHE_KEEP: "1" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Install .NET SDK | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| global-json-file: global.json | |
| - name: Install PowerShell 7.4 for binding discovery | |
| shell: pwsh | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| run: ./scripts/Install-PowerShell74ForCi.ps1 | |
| - name: Install Rust toolchain | |
| shell: pwsh | |
| run: | | |
| rustup toolchain install stable --profile minimal | |
| rustup default stable | |
| - name: Cache cargo artifacts | |
| uses: Swatinem/rust-cache@v2.9.1 | |
| - name: Cache multi-pwsh downloads | |
| uses: actions/cache@v5 | |
| with: | |
| path: ${{ runner.temp }}/multi-pwsh-cache | |
| key: multi-pwsh-scope-smoke-${{ runner.os }}-${{ hashFiles('crates/multi-pwsh/Cargo.toml', '.github/workflows/smoke-tests.yml', 'tests/Invoke-ScopedInstallSmokeTest.ps1') }} | |
| restore-keys: | | |
| multi-pwsh-scope-smoke-${{ runner.os }}- | |
| - name: Install multi-pwsh from source | |
| shell: pwsh | |
| run: | | |
| cargo install --locked --path crates/multi-pwsh --force | |
| - name: Add cargo bin to PATH | |
| shell: pwsh | |
| run: | | |
| $cargoHome = if ($env:CARGO_HOME) { $env:CARGO_HOME } else { Join-Path $HOME '.cargo' } | |
| $cargoBin = Join-Path $cargoHome 'bin' | |
| $cargoBin | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
| - name: Run bootstrap installer tests | |
| shell: pwsh | |
| run: ./tests/Invoke-BootstrapInstallerTest.ps1 | |
| - name: Run smoke tests | |
| shell: pwsh | |
| env: | |
| MULTI_PWSH_CACHE_DIR: ${{ runner.temp }}/multi-pwsh-cache | |
| run: ./tests/Invoke-ScopedInstallSmokeTest.ps1 |