refactor(ci,tests): Support both AppVeyor and GitHub Actions (#4655)

This commit is contained in:
Chawye Hsu
2022-01-14 19:40:35 +08:00
committed by GitHub
parent d7fb97f517
commit d9f55a3a0a
10 changed files with 265 additions and 222 deletions

35
.github/workflows/ci.yml vendored Normal file
View 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