mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2025-12-09 01:25:52 +00:00
refactor(ci,tests): Support both AppVeyor and GitHub Actions (#4655)
This commit is contained in:
35
.github/workflows/ci.yml
vendored
Normal file
35
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [ opened ]
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test_powershell:
|
||||
name: WindowsPowerShell
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 2
|
||||
- name: Init and Test
|
||||
shell: powershell
|
||||
run: |
|
||||
.\test\bin\init.ps1
|
||||
.\test\bin\test.ps1
|
||||
test_pwsh:
|
||||
name: PowerShell
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 2
|
||||
- name: Init and Test
|
||||
shell: pwsh
|
||||
run: |
|
||||
.\test\bin\init.ps1
|
||||
.\test\bin\test.ps1
|
||||
Reference in New Issue
Block a user