Skip to content

update readme

update readme #39

Workflow file for this run

# spell-checker:ignore potatoqualitee psdepend psmodulecache
name: PesterReports
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
checks: write
pull-requests: write
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v4
- name: Install and cache PSDepend
id: psdepend
uses: potatoqualitee/[email protected]
with:
modules-to-cache: PSDepend:0.3.8
- name: Determine modules to cache
shell: pwsh
id: modules-to-cache
run: |
$dependencies = Get-Dependency
$f = $dependencies | ?{ $_.DependencyType -eq 'PSGalleryModule' } | %{ "{0}:{1}" -F $_.DependencyName, $_.Version}
Write-Output "::set-output name=ModulesToCache::$($f -join ', ')"
- name: Install and cache PowerShell modules
id: psmodulecache
uses: potatoqualitee/[email protected]
with:
modules-to-cache: ${{ steps.modules-to-cache.outputs.ModulesToCache }}
shell: pwsh
- name: Test
shell: pwsh
run: ./build.ps1 -Task Test
- name: Upload Unit Test Results
if: always()
uses: actions/[email protected]
with:
name: Unit Test Results (OS ${{ matrix.os }})
path: ./tests/out/testResults.xml
publish-test-results:
name: "Publish Unit Tests Results"
needs: test
runs-on: ubuntu-latest
# the test job might be skipped, we don't need to run this job then
if: (!cancelled())
steps:
- name: Download Artifacts
uses: actions/[email protected]
with:
path: artifacts
- name: Publish Unit Test Results
uses: EnricoMi/[email protected]
with:
files: artifacts/**/*.xml