-
-
Notifications
You must be signed in to change notification settings - Fork 18
59 lines (57 loc) · 1.5 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Test
on:
pull_request:
push:
branches:
- master
jobs:
powershell:
name: PowerShell
runs-on: windows-latest
steps:
- name: Initialize
shell: powershell
run: |
$ErrorActionPreference = 'stop'
if (Test-Path -PathType Container -LiteralPath C:\tools\php) {
Remove-Item -Force -Recurse -LiteralPath C:\tools\php
}
- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Setup
shell: powershell
run: .\test\setup.ps1
- name: Test
shell: powershell
run: |
$pesterResult = .\test\pester.ps1
if ($pesterResult.FailedCount -ne 0) {
throw "$($pesterResult.FailedCount) tests failed!"
}
powershellcore:
name: PowerShell Core
runs-on: windows-latest
steps:
- name: Initialize
shell: pwsh
run: |
$ErrorActionPreference = 'stop'
if (Test-Path -PathType Container -LiteralPath C:\tools\php) {
Remove-Item -Force -Recurse -LiteralPath C:\tools\php
}
- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Setup
shell: pwsh
run: .\test\setup.ps1
- name: Test
shell: pwsh
run: |
$pesterResult = .\test\pester.ps1
if ($pesterResult.FailedCount -ne 0) {
throw "$($pesterResult.FailedCount) tests failed!"
}