Skip to content

chore(deps): bump react-router from 7.9.6 to 7.12.0 in /report in the npm_and_yarn group across 1 directory #1772

chore(deps): bump react-router from 7.9.6 to 7.12.0 in /report in the npm_and_yarn group across 1 directory

chore(deps): bump react-router from 7.9.6 to 7.12.0 in /report in the npm_and_yarn group across 1 directory #1772

# Run pester tests
name: build-validation
on:
workflow_dispatch:
workflow_call:
pull_request:
branches: ["main"]
permissions:
contents: read
actions: read
checks: write
pull-requests: write
statuses: write
jobs:
build-validation:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: filter
with:
filters: |
pwshmodule:
- 'powershell/**'
- 'report/**'
- 'tests/**'
- '.github/workflows/build-validation.yaml'
- name: Install PowerShell dependencies
if: steps.filter.outputs.pwshmodule == 'true'
shell: pwsh
run: |
Install-Module PSFramework -Force -SkipPublisherCheck -Scope CurrentUser -AllowClobber
Install-Module PSModuleDevelopment -Force -SkipPublisherCheck -Scope CurrentUser -AllowClobber
Install-Module Microsoft.Graph.Authentication -Force -SkipPublisherCheck -Scope CurrentUser -AllowClobber
- name: Run Pester tests
if: steps.filter.outputs.pwshmodule == 'true'
shell: pwsh
run: |
./powershell/tests/pester.ps1
- name: Run Tests using Windows PowerShell
if: runner.os == 'Windows' && steps.filter.outputs.pwshmodule == 'true'
shell: powershell
run: |
# Reuse downloaded modules from pwsh
$env:PSModulePath = ($env:PSModulePath).TrimEnd(';')+";$HOME\Documents\PowerShell\Modules"
# Remove old test results
Remove-Item -Path TestResults -Recurse -Force -ErrorAction SilentlyContinue
# Run Pester tests on Windows PowerShell
./powershell/tests/pester.ps1
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
if: (success() || failure()) && steps.filter.outputs.pwshmodule == 'true' # run this step even if previous step failed and tests were run
with:
name: test-results-${{ runner.os }}
path: TestResults/*.xml