-
Notifications
You must be signed in to change notification settings - Fork 9
38 lines (32 loc) · 977 Bytes
/
ci.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
name: CI
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Print versions
- name: Powershell Environment
shell: pwsh
run: |
$PSVersionTable
# Install TeamViewerPS
- name: Install TeamViewerPS
shell: pwsh
run: |
$ProgressPreference='SilentlyContinue'
Install-Module TeamViewerPS -Force -SkipPublisherCheck -Scope CurrentUser -Verbose
# Run tests
- name: Run Pester
shell: pwsh
run: |
$ProgressPreference='SilentlyContinue'
Install-Module Pester -Force -SkipPublisherCheck -Scope CurrentUser `
-RequiredVersion 5.1.1 -Verbose
Invoke-Pester $env:GITHUB_WORKSPACE -Output Detailed -CI