Skip to content

Commit

Permalink
Update integration-tests.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
eprice555 authored May 16, 2024
1 parent dc4e3ba commit 80d178c
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,35 @@ jobs:
node-version-file: '.node-version'
cache: npm

- name: Import Secrets
id: import-secrets
uses: hashicorp/[email protected]
with:
url: https://vault-public-vault-22deb760.8ee49bbe.z1.hashicorp.cloud:8200/
token: ${{ secrets.VAULT_TOKEN }}
namespace: admin/eprice555-test-namespace/
#caCertificate: ${{ secrets.VAULT_CA_CERT }}
secrets: |
secret/data/test/TEST_LOB_API_KEY api-key | TEST_LOB_API_KEY ;
secret/data/test/CICERO_API_KEY api-key | CICERO_API_KEY ;
secret/data/test/TEST_STRIPE_SECRET_KEY api-key | TEST_STRIPE_SECRET_KEY ;
secret/data/test/AUTH0_AUDIENCE api-key | AUTH0_AUDIENCE ;
secret/data/test/AUTH0_DOMAIN api-key | AUTH0_DOMAIN ;
- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test -- server/__tests__/integration/
env:
# Cicero API key
CICERO_API_KEY: ${{ secrets.TEST_CICERO_API_KEY }}
CICERO_API_KEY: ${{ steps.vault.outputs.CICERO_API_KEY }}

Check failure on line 52 in .github/workflows/integration-tests.yaml

View workflow job for this annotation

GitHub Actions / lint-workflows

Unknown context access: 'steps.vault.outputs.CICERO_API_KEY'
# Test environment Lob API key
LOB_API_KEY: ${{ secrets.TEST_LOB_API_KEY }}
LOB_API_KEY: ${{ steps.vault.outputs.TEST_LOB_API_KEY }}

Check failure on line 54 in .github/workflows/integration-tests.yaml

View workflow job for this annotation

GitHub Actions / lint-workflows

Unknown context access: 'steps.vault.outputs.TEST_LOB_API_KEY'
# Stripe test secret key
STRIPE_SECRET_KEY: ${{ secrets.TEST_STRIPE_SECRET_KEY }}
STRIPE_SECRET_KEY: ${{ steps.vault.outputs.TEST_STRIPE_SECRET_KEY }}

Check failure on line 56 in .github/workflows/integration-tests.yaml

View workflow job for this annotation

GitHub Actions / lint-workflows

Unknown context access: 'steps.vault.outputs.TEST_STRIPE_SECRET_KEY'
# Auth0 authentication parameters with nonsensical sample values
SERVER_PORT: 8080
CLIENT_ORIGIN_URL: http://localhost:8080
AUTH0_AUDIENCE: your_Auth0_identifier_value
AUTH0_DOMAIN: your_Auth0_domain
AUTH0_AUDIENCE: ${{ steps.vault.outputs.AUTH0_AUDIENCE }}

Check failure on line 60 in .github/workflows/integration-tests.yaml

View workflow job for this annotation

GitHub Actions / lint-workflows

Unknown context access: 'steps.vault.outputs.AUTH0_AUDIENCE'
AUTH0_DOMAIN: ${{ steps.vault.outputs.AUTH0_DOMAIN }}

Check failure on line 61 in .github/workflows/integration-tests.yaml

View workflow job for this annotation

GitHub Actions / lint-workflows

Unknown context access: 'steps.vault.outputs.AUTH0_DOMAIN'

0 comments on commit 80d178c

Please sign in to comment.