Skip to content

Commit

Permalink
chore: make typesense env variables available in github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinstadler committed Aug 19, 2024
1 parent 53bb37f commit cf8cef8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ jobs:
"NEXT_PUBLIC_MATOMO_BASE_URL=${{ vars.NEXT_PUBLIC_MATOMO_BASE_URL }}"
"NEXT_PUBLIC_MATOMO_ID=${{ vars.NEXT_PUBLIC_MATOMO_ID }}"
"NEXT_PUBLIC_REDMINE_ID=${{ vars.SERVICE_ID }}"
"NEXT_PUBLIC_TYPESENSE_API_KEY=${{ vars.NEXT_PUBLIC_TYPESENSE_API_KEY }}"
"NEXT_PUBLIC_TYPESENSE_HOST=${{ vars.NEXT_PUBLIC_TYPESENSE_HOST }}"
"NEXT_PUBLIC_TYPESENSE_PORT=${{ vars.NEXT_PUBLIC_TYPESENSE_PORT }}"
"NEXT_PUBLIC_TYPESENSE_PROTOCOL=${{ vars.NEXT_PUBLIC_TYPESENSE_PROTOCOL }}"
cache-from: type=gha
cache-to: type=gha,mode=max

Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,21 @@ jobs:
NEXT_PUBLIC_APP_BASE_URL: "http://localhost:3000"
NEXT_PUBLIC_MATOMO_BASE_URL: "${{ vars.NEXT_PUBLIC_MATOMO_BASE_URL }}"
NEXT_PUBLIC_REDMINE_ID: "${{ vars.SERVICE_ID }}"
NEXT_PUBLIC_TYPESENSE_API_KEY: "${{ vars.NEXT_PUBLIC_TYPESENSE_API_KEY }}"
NEXT_PUBLIC_TYPESENSE_HOST: "${{ vars.NEXT_PUBLIC_TYPESENSE_HOST }}"
NEXT_PUBLIC_TYPESENSE_PORT: "${{ vars.NEXT_PUBLIC_TYPESENSE_PORT }}"
NEXT_PUBLIC_TYPESENSE_PROTOCOL: "${{ vars.NEXT_PUBLIC_TYPESENSE_PROTOCOL }}"

- name: Run e2e tests
run: pnpm run test:e2e
env:
NEXT_PUBLIC_APP_BASE_URL: "http://localhost:3000"
NEXT_PUBLIC_MATOMO_BASE_URL: "${{ vars.NEXT_PUBLIC_MATOMO_BASE_URL }}"
NEXT_PUBLIC_REDMINE_ID: "${{ vars.SERVICE_ID }}"
NEXT_PUBLIC_TYPESENSE_API_KEY: "${{ vars.NEXT_PUBLIC_TYPESENSE_API_KEY }}"
NEXT_PUBLIC_TYPESENSE_HOST: "${{ vars.NEXT_PUBLIC_TYPESENSE_HOST }}"
NEXT_PUBLIC_TYPESENSE_PORT: "${{ vars.NEXT_PUBLIC_TYPESENSE_PORT }}"
NEXT_PUBLIC_TYPESENSE_PROTOCOL: "${{ vars.NEXT_PUBLIC_TYPESENSE_PROTOCOL }}"

- uses: actions/upload-artifact@v4
if: always()
Expand Down

0 comments on commit cf8cef8

Please sign in to comment.