Migrates to Pester5+ tests (#59)
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
#### 📖 Summary - update Pester tests to Pester5+ compatiple layout - switch to dotnet base imaged - dotnet binary required for publishung powershell modules (Publish-Module) #### 📑 Test Plan > 💡 Select your test plan for the code changes. - [x] Tested via Drone.io pipeline - [ ] Custom test - [ ] No test plan ##### Details / Justification <!-- Add your test details or justification for missing tests here. --> #### 📚 Additional Notes <!-- A place for additional detail notes. --> Co-authored-by: OCram85 <marco.blessing@googlemail.com> Reviewed-on: #59
This commit is contained in:
44
.drone.yml
44
.drone.yml
@ -1,7 +1,7 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: Linux_PWSH7_Build
|
||||
name: PWSH_LTS_7.2_Ubuntu-focal
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
@ -9,7 +9,7 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: Environments
|
||||
image: mcr.microsoft.com/powershell:latest
|
||||
image: mcr.microsoft.com/powershell:lts-7.2-ubuntu-focal
|
||||
commands:
|
||||
- |
|
||||
pwsh -NonInteractive -c "& {
|
||||
@ -18,29 +18,47 @@ steps:
|
||||
}"
|
||||
|
||||
- name: LintTests
|
||||
image: mcr.microsoft.com/powershell:latest
|
||||
image: mcr.microsoft.com/powershell:lts-7.2-ubuntu-focal
|
||||
failure: ignore
|
||||
commands:
|
||||
- |
|
||||
pwsh -NonInteractive -c "& {
|
||||
Import-Module './tools/DroneIO.psm1';
|
||||
Invoke-InstallDependencies;
|
||||
Invoke-Linter
|
||||
Invoke-Linter -ErrorAction 'Stop'
|
||||
}"
|
||||
|
||||
- name: UnitTests
|
||||
image: mcr.microsoft.com/powershell:latest
|
||||
image: mcr.microsoft.com/powershell:lts-7.2-ubuntu-focal
|
||||
failure: ignore
|
||||
commands:
|
||||
- |
|
||||
pwsh -NonInteractive -c "& {
|
||||
Import-Module './tools/DroneIO.psm1';
|
||||
Invoke-InstallDependencies;
|
||||
Invoke-UnitTest -Verbosity 'Detailed'
|
||||
Invoke-UnitTest -Verbosity 'Normal' -ExcludeTag @( 'Integration', 'Disabled') -ErrorAction 'Stop'
|
||||
}"
|
||||
|
||||
- name: coverage
|
||||
image: plugins/codecov
|
||||
settings:
|
||||
token:
|
||||
from_secret: CodeCovToken
|
||||
files:
|
||||
- coverage.xml
|
||||
# Disable Codecov for self hosted git
|
||||
#- name: Coverage
|
||||
# image: plugins/codecov
|
||||
# settings:
|
||||
# token:
|
||||
# from_secret: CodeCovToken
|
||||
# files:
|
||||
# - coverage.xml
|
||||
# depends_on:
|
||||
# - UnitTests
|
||||
|
||||
- name: SetPipelineState
|
||||
image: mcr.microsoft.com/powershell:lts-7.2-ubuntu-focal
|
||||
commands:
|
||||
- |
|
||||
pwsh -NonInteractive -c "& {
|
||||
Import-Module './tools/DroneIO.psm1';
|
||||
Invoke-BuildState -ErrorAction 'Stop'
|
||||
}"
|
||||
depends_on:
|
||||
- LintTests
|
||||
- UnitTests
|
||||
#- Coverage
|
||||
|
Reference in New Issue
Block a user