Skip to content

Commit

Permalink
ci: add actions workflow to test install
Browse files Browse the repository at this point in the history
- Use `MinoruSekine/setup-scoop` action to setup scoop.
- Run `Install-Test.ps1` script to validate manifest changes and test installation.
  • Loading branch information
huiyifyj committed Feb 22, 2025
1 parent e7b9eb2 commit f6a7844
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: test

on: [push, pull_request]

jobs:
test-powershell:
name: Test WindowsPowerShell
runs-on: windows-latest
steps:
- name: Setup Scoop
uses: MinoruSekine/setup-scoop@v4

- name: Checkout
uses: actions/checkout@v4

- name: Install xn bucket
shell: powershell
run: scoop bucket add xn https://github.com/Pengxn/xn

- name: Init and Test
shell: powershell
run: .\test\Install-Test.ps1

test-pwsh:
name: Test PowerShell Core
runs-on: windows-latest
steps:
- name: Setup Scoop
uses: MinoruSekine/setup-scoop@v4

- name: Checkout
uses: actions/checkout@v4

- name: Install xn bucket
shell: powershell
run: scoop bucket add xn https://github.com/Pengxn/xn

- name: Init and Test
shell: pwsh
run: .\test\Install-Test.ps1

0 comments on commit f6a7844

Please sign in to comment.