Run Nushell Upgrade Tests #284
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
| # Description: This workflow runs tests for hustcer/deepseek-review. | |
| # REF: | |
| # - https://github.com/vyadh/nutest/blob/main/.github/workflows/tests.yaml | |
| # - https://github.com/fdncred/winget-pkgs/blob/master/doc/manifest/schema/1.10.0/installer.md | |
| # - https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables | |
| name: Run Nushell Upgrade Tests | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - '**.md' | |
| - 'docs/**' | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| - feature/msi-test | |
| paths-ignore: | |
| - '**.md' | |
| - 'docs/**' | |
| schedule: | |
| - cron: '0 2 * * *' # Run every morning at 2am UTC | |
| permissions: | |
| contents: read | |
| jobs: | |
| default: | |
| name: Install and Upgrade Nushell | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [windows-latest, windows-2025] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Winget | |
| run: | | |
| winget --version | |
| winget settings --enable LocalManifestFiles | |
| winget settings --enable InstallerHashOverride | |
| - name: Setup Nu | |
| uses: hustcer/setup-nu@v3 | |
| with: | |
| version: 'nightly' | |
| - name: Install Komac Tool | |
| shell: cmd | |
| run: | | |
| winget install komac --accept-source-agreements --accept-package-agreements --disable-interactivity | |
| - name: Test Nushell Upgrade | |
| shell: nu {0} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| use ${{ github.workspace }}/tests/test-all.nu * | |
| use ${{ github.workspace }}/tests/winget-install.nu [prepare-manifest] | |
| prepare-manifest | |
| test-winget-per-user-install | |
| test-winget-per-user-upgrade | |
| test-winget-per-machine-install | |
| test-winget-per-machine-upgrade | |