Skip to content

Commit

Permalink
fix(actions): Add CA roots to actions workflow for gotests
Browse files Browse the repository at this point in the history
  • Loading branch information
m8rmclaren committed Oct 24, 2023
1 parent e027da8 commit f2051a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,15 @@ jobs:
# Place the contents of ${{ secrets.EJBCA_CLIENT_CERT_PATH }} into a file at /tmp/certs/ejbca.pem
- run: mkdir -p /tmp/certs && echo "${{ secrets.EJBCA_CLIENT_CERT }}" > /tmp/certs/ejbca.pem

# Place the contents of ${{ secrets.EJBCA_CA_CERT_PATH }} into a file at /tmp/certs/ejbca-ca.pem
- run: mkdir -p /tmp/certs && echo "${{ secrets.EJBCA_CA_CERT }}" > /tmp/certs/ejbca-ca.pem

# Run Go tests
- name: Run go test
run: go test -v ./...
env:
EJBCA_CLIENT_CERT_PATH: /tmp/certs/ejbca.pem
EJBCA_CA_CERT_PATH: /tmp/certs/ejbca-ca.pem
EJBCA_CA_NAME: ${{ vars.EJBCA_CA_NAME }}
EJBCA_HOSTNAME: ${{ secrets.EJBCA_HOSTNAME }}
EJBCA_CERTIFICATE_PROFILE_NAME: ${{ vars.EJBCA_CERTIFICATE_PROFILE_NAME }}
Expand Down

0 comments on commit f2051a7

Please sign in to comment.