Skip to content
Merged
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
6 changes: 5 additions & 1 deletion .github/workflows/test-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,18 @@ jobs:
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]
winget install komac --accept-source-agreements --accept-package-agreements --disable-interactivity
prepare-manifest
test-winget-per-user-install
test-winget-per-user-upgrade
Expand Down
18 changes: 15 additions & 3 deletions .github/workflows/test-winget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,16 @@ jobs:
with:
version: 'nightly'

- name: Install Komac Tool
shell: cmd
run: |
winget install komac --accept-source-agreements --accept-package-agreements --disable-interactivity

- name: Test Winget Install with Default Scope
shell: nu {0}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
winget install komac --accept-source-agreements --accept-package-agreements --disable-interactivity
nu tests/winget-install.nu

user-scope:
Expand All @@ -78,12 +82,16 @@ jobs:
with:
version: 'nightly'

- name: Install Komac Tool
shell: cmd
run: |
winget install komac --accept-source-agreements --accept-package-agreements --disable-interactivity

- name: Test Winget Install with User Scope
shell: nu {0}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
winget install komac --accept-source-agreements --accept-package-agreements --disable-interactivity
nu tests/winget-install.nu --scope user

machine-scope:
Expand All @@ -104,10 +112,14 @@ jobs:
with:
version: 'nightly'

- name: Install Komac Tool
shell: cmd
run: |
winget install komac --accept-source-agreements --accept-package-agreements --disable-interactivity

- name: Test Winget Install with Machine Scope
shell: nu {0}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
winget install komac --accept-source-agreements --accept-package-agreements --disable-interactivity
nu tests/winget-install.nu --scope machine