Skip to content Navigation Menu Toggle navigation Sign in Appearance settings PlatformAI CODE CREATIONGitHub CopilotWrite better code with AIGitHub Copilot appDirect agents from issue to mergeMCP RegistryNewIntegrate external toolsDEVELOPER WORKFLOWSActionsAutomate any workflowCodespacesInstant dev environmentsIssuesPlan and track workCode ReviewManage code changesAPPLICATION SECURITYGitHub Advanced SecurityFind and fix vulnerabilitiesCode securitySecure your code as you buildSecret protectionStop leaks before they startEXPLOREWhy GitHubDocumentationBlogChangelogMarketplaceView all featuresSolutionsBY COMPANY SIZEEnterprisesSmall and medium teamsStartupsNonprofitsBY USE CASEApp ModernizationDevSecOpsDevOpsCI/CDView all use casesBY INDUSTRYHealthcareFinancial servicesManufacturingGovernmentView all industriesView all solutionsResourcesEXPLORE BY TOPICAISoftware DevelopmentDevOpsSecurityView all topicsEXPLORE BY TYPECustomer storiesEvents & webinarsEbooks & reportsBusiness insightsGitHub SkillsSUPPORT & SERVICESDocumentationCustomer supportCommunity forumTrust centerPartnersView all resourcesOpen SourceCOMMUNITYGitHub SponsorsFund open source developersPROGRAMSSecurity LabMaintainer CommunityAcceleratorGitHub StarsArchive ProgramREPOSITORIESTopicsTrendingCollectionsEnterpriseENTERPRISE SOLUTIONSEnterprise platformAI-powered developer platformAVAILABLE ADD-ONSGitHub Advanced SecurityEnterprise-grade security featuresCopilot for BusinessEnterprise-grade AI featuresPremium SupportEnterprise-grade 24/7 supportPricing Search or jump to... Search code, repositories, users, issues, pull requests... Search Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Saved searches Use saved searches to filter your results more quickly Name Query To see all available qualifiers, see our documentation. Sign in Sign up Appearance settings Resetting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} PowerShell / PSScriptAnalyzer Public Notifications You must be signed in to change notification settings Fork 410 Star 2.1k Code Issues 394 Pull requests 13 Discussions Actions Projects Wiki Security and quality 0 Insights Additional navigation options Code Issues Pull requests Discussions Actions Projects Wiki Security and quality Insights FilesExpand file tree mainBreadcrumbsPSScriptAnalyzer/.github/workflows/ci-test.ymlCopy pathView RunsBlameMore file actionsBlameMore file actions Latest commit HistoryHistoryHistory84 lines (71 loc) · 2.24 KB mainBreadcrumbsPSScriptAnalyzer/.github/workflows/ci-test.ymlCopy pathTopFile metadata and controlsCodeBlame84 lines (71 loc) · 2.24 KBRawCopy raw fileDownload raw fileOpen symbols panelEdit and raw actions123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384name: CI Tests on: workflow_dispatch: # to allow contributors to trigger CI manually in their fork push: branches: [ main ] pull_request: branches: [ main ] jobs: ci: name: pester strategy: matrix: os: [ windows-latest, macos-latest, ubuntu-latest ] runs-on: ${{ matrix.os }} env: DOTNET_NOLOGO: true DOTNET_GENERATE_ASPNET_CERTIFICATE: false steps: - name: Checkout repository uses: actions/checkout@v4 - name: Install dotnet uses: actions/setup-dotnet@v4 with: cache: true cache-dependency-path: '**/*.csproj' - name: Install PSResources run: ./tools/installPSResources.ps1 shell: pwsh - name: Build run: ./build.ps1 -Configuration Release -All -Verbose shell: pwsh - name: Package run: ./build.ps1 -BuildNupkg -Verbose shell: pwsh - name: Test run: ./build.ps1 -Test -Verbose shell: pwsh - name: Test Windows PowerShell if: matrix.os == 'windows-latest' run: | Install-Module Pester -Scope CurrentUser -Force -SkipPublisherCheck ./build.ps1 -Test -Verbose shell: powershell - name: Download PowerShell install script uses: actions/checkout@v4 with: repository: PowerShell/PowerShell path: pwsh sparse-checkout: tools/install-powershell.ps1 sparse-checkout-cone-mode: false - name: Install preview continue-on-error: true run: ./pwsh/tools/install-powershell.ps1 -Preview -Destination ./preview shell: pwsh - name: Test preview run: | $PwshPreview = if ($isWindows) { "./preview/pwsh.exe" } else { "./preview/pwsh" } ./build.ps1 -Test -WithPowerShell:$PwshPreview -Verbose shell: pwsh - name: Upload build artifacts uses: actions/upload-artifact@v4 if: always() with: name: PSScriptAnalyzer-package-${{ matrix.os }} path: out/**/*.nupkg - name: Upload test results uses: actions/upload-artifact@v4 if: always() with: name: PSScriptAnalyzer-tests-${{ matrix.os }} path: testResults.xml You can’t perform that action at this time.