Bump actions/upload-artifact from 4.3.0 to 4.6.0 #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-License-Identifier: Apache-2.0 | ||
# Licensed to the Ed-Fi Alliance under one or more agreements. | ||
# The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. | ||
# See the LICENSE and NOTICES files in the project root for more information. | ||
name: On Pull Request - PowerShell | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "**/*.ps1" | ||
- "**/*.psm1" | ||
- "**/analyze-repository.yml" | ||
- "**/powershell-analyzer.yml" | ||
workflow_dispatch: | ||
permissions: read-all | ||
jobs: | ||
run-lint: | ||
Check failure on line 22 in .github/workflows/on-pullrequest-powershell.yml GitHub Actions / On Pull Request - PowerShellInvalid workflow file
|
||
name: Linter | ||
uses: Ed-Fi-Alliance-OSS/Ed-Fi-Actions/.github/workflows/powershell-analyzer.yml@main | ||
permissions: | ||
security-events: write | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the Actions repo | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
- name: Run Unit Tests | ||
shell: pwsh | ||
working-directory: powershell-analyzer | ||
run: | | ||
$PesterConfig = New-PesterConfiguration | ||
$PesterConfig.TestResult.OutputFormat = "JUnitXml" | ||
$PesterConfig.TestResult.OutputPath = "ps-analyzer.xml" | ||
$PesterConfig.TestResult.Enabled = $True | ||
Invoke-Pester -Configuration $PesterConfig | ||
- name: Upload Test Results | ||
if: always() | ||
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 | ||
with: | ||
name: Test Results | ||
path: powershell-analyzer/ps-analyzer.xml | ||
event_file: | ||
name: Upload Event File | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Upload | ||
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 | ||
with: | ||
name: Event File | ||
path: ${{ github.event_path }} |