Skip to content

OSOE-743: Cancel ongoing runs of long-running workflows under a PR when new changes are pushed #41

OSOE-743: Cancel ongoing runs of long-running workflows under a PR when new changes are pushed

OSOE-743: Cancel ongoing runs of long-running workflows under a PR when new changes are pushed #41

name: PowerShell Static Code Analysis
# Runs for PRs opened for any branch, and pushes to the dev branch.
on:
pull_request:
push:
branches:
- dev
jobs:
powershell-static-code-analysis:
name: PowerShell Static Code Analysis
uses: Lombiq/PowerShell-Analyzers/.github/workflows/static-code-analysis.yml@dev
with:
# Making sure that analysis runs through both PowerShell editions regardless of the default configuration of the
# workflow and the underlying action to ensure backwards-compatibility.
run-windows-powershell: "true"
run-powershell-core: "true"