Skip to content

Add installation tests for loonarch64 (#68) #119

Add installation tests for loonarch64 (#68)

Add installation tests for loonarch64 (#68) #119

Workflow file for this run

# 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@v4
- name: Install winget
if: ${{ matrix.os == 'windows-latest' }}
uses: Cyberboss/install-winget@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- 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: 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
test-winget-per-machine-install
test-winget-per-machine-upgrade