From 98a7d6bb2ea9a2c7b271f2f553e2fe7816c2a6cc Mon Sep 17 00:00:00 2001 From: Volodymyr Khoroz Date: Tue, 3 Oct 2023 00:05:48 +0300 Subject: [PATCH] fixup! Feature: add a GitHub workflow to test PKI on pull request Signed-off-by: Volodymyr Khoroz --- .github/workflows/test-pki.yml | 6 ++---- Makefile | 3 +++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-pki.yml b/.github/workflows/test-pki.yml index 00e77737..7ac06da9 100644 --- a/.github/workflows/test-pki.yml +++ b/.github/workflows/test-pki.yml @@ -12,11 +12,9 @@ jobs: uses: actions/setup-go@v4.1.0 with: go-version: '~1.19' - - name: Setup test deps - uses: ConorMacBride/install-package@v1.1.0 - with: - apt: openssl softhsm2 opensc libengine-pkcs11-openssl - name: Clone the code uses: actions/checkout@v4 + - name: Setup test deps + run: sudo make install-test-pki-deps - name: Run tests run: make test-pki diff --git a/Makefile b/Makefile index 9fc3622a..c5e318ee 100644 --- a/Makefile +++ b/Makefile @@ -52,6 +52,9 @@ format: check: format-check linter-check @true +install-test-pki-deps: + apt install openssl softhsm2 opensc libengine-pkcs11-openssl + # This needs the following packages on Ubuntu: openssl softhsm2 opensc libengine-pkcs11-openssl test-pki: go test ./x509/... -v -tags testhsm