Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/scripts/provision-linux-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
set -euo pipefail
sudo apt-get update && sudo apt-get install -y softhsm2
3 changes: 3 additions & 0 deletions .github/scripts/provision-macos-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
set -euo pipefail
brew install softhsm
6 changes: 6 additions & 0 deletions .github/scripts/provision-windows-test.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Requires -Version 7.3
$ErrorActionPreference = "Stop"
$PSNativeCommandUseErrorActionPreference = $true

Invoke-WebRequest -Uri 'https://github.com/disig/SoftHSM2-for-Windows/releases/download/v2.5.0/SoftHSM2-2.5.0-portable.zip' -OutFile 'softhsm2.zip'
Expand-Archive -Path 'softhsm2.zip' -DestinationPath 'C:\'
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,16 @@ jobs:

- name: Setup image (Linux)
if: ${{ contains(matrix.os, 'ubuntu') }}
run: ./.github/scripts/provision-linux-build.sh
run: ./.github/scripts/provision-linux-build.sh && ./.github/scripts/provision-linux-test.sh

- name: Setup image (macOS)
if: ${{ contains(matrix.os, 'macos') }}
run: ./.github/scripts/provision-macos-test.sh

- name: Setup image (Windows)
if: ${{ contains(matrix.os, 'windows') }}
run: .github/scripts/provision-windows-test.ps1
shell: pwsh

- name: Setup WSL2 (Windows)
if: ${{ contains(matrix.os, 'windows') }}
Expand Down
Loading
Loading