From 89be8ad5994b073c17bf498469f8e30aee115e28 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Wed, 29 Jun 2022 13:44:49 +0200 Subject: [PATCH] add pwsh lts --- .drone.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/.drone.yml b/.drone.yml index 0d5dc6d..bc2712f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -46,3 +46,49 @@ steps: from_secret: CodeCovToken files: - coverage.xml + +--- + +kind: pipeline +type: docker +name: PWSH_LTS_7.2_Ubuntu-focal + +platform: + os: linux + arch: amd64 + + +platform: + os: linux + arch: amd64 + +steps: + - name: Environments + image: mcr.microsoft.com/powershell:lts-7.2-ubuntu-focal + commands: + - | + pwsh -NonInteractive -c "& { + Import-Module './tools/DroneIO.psm1' -Verbose; + Invoke-ShowEnv -Verbose + }" + + - name: LintTests + 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 -ErrorAction 'Stop' + }" + + - name: UnitTests + 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' -ErrorAction 'Stop'