2022-03-09 13:39:58 +05:30
|
|
|
name: Tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test_powershell:
|
|
|
|
name: WindowsPowerShell
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Bucket
|
2022-10-13 13:30:16 +02:00
|
|
|
uses: actions/checkout@main
|
2022-03-09 13:39:58 +05:30
|
|
|
with:
|
|
|
|
fetch-depth: 2
|
|
|
|
path: 'my_bucket'
|
|
|
|
- name: Checkout Scoop
|
2022-10-13 13:30:16 +02:00
|
|
|
uses: actions/checkout@main
|
2022-03-09 13:39:58 +05:30
|
|
|
with:
|
|
|
|
repository: ScoopInstaller/Scoop
|
|
|
|
path: 'scoop_core'
|
|
|
|
- name: Init and Test
|
|
|
|
shell: powershell
|
|
|
|
run: |
|
2022-10-13 13:30:16 +02:00
|
|
|
$env:SCOOP_HOME="$(Convert-Path '.\scoop_core')"
|
2022-03-09 13:39:58 +05:30
|
|
|
.\scoop_core\test\bin\init.ps1
|
|
|
|
.\my_bucket\bin\test.ps1
|
|
|
|
test_pwsh:
|
|
|
|
name: PowerShell
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Bucket
|
2022-10-13 13:30:16 +02:00
|
|
|
uses: actions/checkout@main
|
2022-03-09 13:39:58 +05:30
|
|
|
with:
|
|
|
|
fetch-depth: 2
|
|
|
|
path: 'my_bucket'
|
|
|
|
- name: Checkout Scoop
|
2022-10-13 13:30:16 +02:00
|
|
|
uses: actions/checkout@main
|
2022-03-09 13:39:58 +05:30
|
|
|
with:
|
|
|
|
repository: ScoopInstaller/Scoop
|
|
|
|
path: 'scoop_core'
|
|
|
|
- name: Init and Test
|
|
|
|
shell: pwsh
|
|
|
|
run: |
|
2022-10-13 13:30:16 +02:00
|
|
|
$env:SCOOP_HOME="$(Convert-Path '.\scoop_core')"
|
2022-03-09 13:39:58 +05:30
|
|
|
.\scoop_core\test\bin\init.ps1
|
|
|
|
.\my_bucket\bin\test.ps1
|