master
 1name: Tests
 2
 3on:
 4  push:
 5    branches:
 6      - 'main'
 7      - 'master'
 8  pull_request:
 9  workflow_dispatch:
10
11jobs:
12  test_powershell:
13    name: WindowsPowerShell
14    runs-on: windows-latest
15    steps:
16      - name: Checkout Bucket
17        uses: actions/checkout@main
18        with:
19          fetch-depth: 2
20          path: my_bucket
21      - name: Checkout Scoop
22        uses: actions/checkout@main
23        with:
24          repository: ScoopInstaller/Scoop
25          path: scoop_core
26      - name: Init Test Suite
27        uses: potatoqualitee/psmodulecache@main
28        with:
29          modules-to-cache: BuildHelpers
30          shell: powershell
31      - name: Test Bucket
32        shell: powershell
33        run: |
34          $env:SCOOP_HOME="$(Convert-Path '.\scoop_core')"
35          .\my_bucket\bin\test.ps1
36  test_pwsh:
37    name: PowerShell
38    runs-on: windows-latest
39    steps:
40      - name: Checkout Bucket
41        uses: actions/checkout@main
42        with:
43          fetch-depth: 2
44          path: my_bucket
45      - name: Checkout Scoop
46        uses: actions/checkout@main
47        with:
48          repository: ScoopInstaller/Scoop
49          path: scoop_core
50      - name: Init Test Suite
51        uses: potatoqualitee/psmodulecache@main
52        with:
53          modules-to-cache: BuildHelpers
54          shell: pwsh
55      - name: Test Bucket
56        shell: pwsh
57        run: |
58          $env:SCOOP_HOME="$(Convert-Path '.\scoop_core')"
59          .\my_bucket\bin\test.ps1