Added OP_ENV_FILE to acceptance test, fixed lint/style error and added example .env.tpl documentation in README

Signed-off-by: Willi Carlsen <carlsenwilli@gmail.com>
This commit is contained in:
Willi Carlsen
2025-09-03 08:45:53 +02:00
parent d11f2d1dac
commit 08a0af8ec3
6 changed files with 31 additions and 16 deletions

View File

@@ -36,9 +36,9 @@ jobs:
if: |
github.event_name != 'repository_dispatch' &&
(
github.ref == 'refs/heads/main' ||
github.ref == 'refs/heads/main' ||
(
github.event_name == 'pull_request' &&
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository
)
)
@@ -96,12 +96,14 @@ jobs:
SECRET: ${{ inputs.secret }}
SECRET_IN_SECTION: ${{ inputs.secret-in-section }}
MULTILINE_SECRET: ${{ inputs.multiline-secret }}
OP_ENV_FILE: ./tests/.env.tpl
- name: Assert test secret values [step output]
if: ${{ !inputs.export-env }}
env:
SECRET: ${{ steps.load_secrets.outputs.SECRET }}
SECRET_IN_SECTION: ${{ steps.load_secrets.outputs.SECRET_IN_SECTION }}
MULTILINE_SECRET: ${{ steps.load_secrets.outputs.MULTILINE_SECRET }}
OP_ENV_FILE: ./tests/.env.tpl
run: ./tests/assert-env-set.sh
- name: Assert test secret values [exported env]
if: ${{ inputs.export-env }}