Isolate updater test fixtures #38
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| validate: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 | |
| with: | |
| persist-credentials: false | |
| - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # pinned action | |
| with: | |
| toolchain: 1.97.1 | |
| components: rustfmt, clippy | |
| - run: cargo fmt -- --check | |
| - run: cargo check --workspace --all-targets | |
| - run: cargo test | |
| - run: cargo clippy --all-targets -- -D warnings | |
| - run: cargo build --release | |
| - name: Install dependency policy tools | |
| shell: pwsh | |
| run: cargo install cargo-deny --version 0.20.2 --locked | |
| - run: cargo deny check | |
| powershell: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 | |
| with: | |
| persist-credentials: false | |
| - name: Install pinned PowerShell quality tools | |
| shell: pwsh | |
| run: | | |
| Install-PSResource -Name PSScriptAnalyzer -Version 1.25.0 -Repository PSGallery -TrustRepository -Scope CurrentUser | |
| Install-PSResource -Name Pester -Version 6.1.0 -Repository PSGallery -TrustRepository -Scope CurrentUser | |
| - name: Parse and lint PowerShell | |
| shell: pwsh | |
| run: ./scripts/validate-powershell.ps1 | |
| - name: Run Pester tests | |
| shell: pwsh | |
| run: Invoke-Pester -Path ./tests/powershell -Output Detailed |