Skip to content

Commit

Permalink
Name steps in GitHub CI Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andyleejordan committed Aug 3, 2024
1 parent 3d7baf6 commit de1e499
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,40 @@ jobs:
DOTNET_NOLOGO: true
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
- name: Checkout repository
uses: actions/checkout@v4

- name: Install dotnet
uses: actions/setup-dotnet@v4
with:
cache: true
cache-dependency-path: '**/*.csproj'
dotnet-version: 8.x
- run: ./tools/installPSResources.ps1

- name: Install PSResources
run: ./tools/installPSResources.ps1
shell: pwsh
- run: Invoke-Build -Configuration Release -Task Build, Package, Test

- name: Build and test
run: Invoke-Build -Configuration Release -Task Build, Package, Test
shell: pwsh
- run: |

- name: Test Windows PowerShell
run: |
Install-Module Pester -Scope CurrentUser -Force -SkipPublisherCheck
Invoke-Pester Test
if: matrix.os == 'windows-latest'
shell: powershell
- uses: actions/upload-artifact@v4

- name: Upload build artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: SecretManagement-package-${{ matrix.os }}
path: out/**/*.nupkg
- uses: actions/upload-artifact@v4

- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: SecretManagement-tests-${{ matrix.os }}
Expand Down

0 comments on commit de1e499

Please sign in to comment.