Skip to content

Commit f6a7844

Browse files
committed
ci: add actions workflow to test install
- Use `MinoruSekine/setup-scoop` action to setup scoop. - Run `Install-Test.ps1` script to validate manifest changes and test installation.
1 parent e7b9eb2 commit f6a7844

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test-powershell:
7+
name: Test WindowsPowerShell
8+
runs-on: windows-latest
9+
steps:
10+
- name: Setup Scoop
11+
uses: MinoruSekine/setup-scoop@v4
12+
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Install xn bucket
17+
shell: powershell
18+
run: scoop bucket add xn https://github.com/Pengxn/xn
19+
20+
- name: Init and Test
21+
shell: powershell
22+
run: .\test\Install-Test.ps1
23+
24+
test-pwsh:
25+
name: Test PowerShell Core
26+
runs-on: windows-latest
27+
steps:
28+
- name: Setup Scoop
29+
uses: MinoruSekine/setup-scoop@v4
30+
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
34+
- name: Install xn bucket
35+
shell: powershell
36+
run: scoop bucket add xn https://github.com/Pengxn/xn
37+
38+
- name: Init and Test
39+
shell: pwsh
40+
run: .\test\Install-Test.ps1

0 commit comments

Comments
 (0)