Skip to content

Commit

Permalink
fixup! Feature: add a GitHub workflow to test PKI on pull request
Browse files Browse the repository at this point in the history
Signed-off-by: Volodymyr Khoroz <volodymyr.khoroz@foundries.io>
  • Loading branch information
vkhoroz committed Oct 2, 2023
1 parent 42403cd commit 98a7d6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test-pki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98a7d6b

Please sign in to comment.