-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (21 loc) · 881 Bytes
/
ci.yml
File metadata and controls
26 lines (21 loc) · 881 Bytes
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
# This is a basic workflow to help you get started with Actions
# reference: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-powershell
name: CI
# Controls when the workflow will run
on: push
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
pester-test:
name: PSScriptAnalyzer via Pester
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Run PSScriptAnalyzer via Pester
shell: pwsh
run: |
./Invoke-PSScriptAnalyzerViaPester.ps1
- name: Confirm output file present
shell: pwsh
run: |
Test-Path ./output/psscriptanalyzer-nunit.xml | Should -Be $true