mirror of
https://github.com/laoxong/ScoopBucket
synced 2025-02-21 12:24:47 +01:00
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
|
name: Tests
|
||
|
|
||
|
on:
|
||
|
pull_request:
|
||
|
push:
|
||
|
workflow_dispatch:
|
||
|
|
||
|
jobs:
|
||
|
test_powershell:
|
||
|
name: WindowsPowerShell
|
||
|
runs-on: windows-latest
|
||
|
steps:
|
||
|
- name: Checkout Bucket
|
||
|
uses: actions/checkout@v2
|
||
|
with:
|
||
|
fetch-depth: 2
|
||
|
path: 'my_bucket'
|
||
|
- name: Checkout Scoop
|
||
|
uses: actions/checkout@v2
|
||
|
with:
|
||
|
repository: ScoopInstaller/Scoop
|
||
|
path: 'scoop_core'
|
||
|
- name: Init and Test
|
||
|
shell: powershell
|
||
|
run: |
|
||
|
$env:SCOOP_HOME="$(Resolve-Path '.\scoop_core')"
|
||
|
.\scoop_core\test\bin\init.ps1
|
||
|
.\my_bucket\bin\test.ps1
|
||
|
test_pwsh:
|
||
|
name: PowerShell
|
||
|
runs-on: windows-latest
|
||
|
steps:
|
||
|
- name: Checkout Bucket
|
||
|
uses: actions/checkout@v2
|
||
|
with:
|
||
|
fetch-depth: 2
|
||
|
path: 'my_bucket'
|
||
|
- name: Checkout Scoop
|
||
|
uses: actions/checkout@v2
|
||
|
with:
|
||
|
repository: ScoopInstaller/Scoop
|
||
|
path: 'scoop_core'
|
||
|
- name: Init and Test
|
||
|
shell: pwsh
|
||
|
run: |
|
||
|
$env:SCOOP_HOME="$(Resolve-Path '.\scoop_core')"
|
||
|
.\scoop_core\test\bin\init.ps1
|
||
|
.\my_bucket\bin\test.ps1
|