Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,25 @@ jobs:
flag-keys: |
isAwesomeFeatureEnabled
isPOCFeatureEnabled
nonexisting
nonexisting:false
nonexistingButTrueDefault:true
nonExistingEmpty
user-attributes: email:user@example.com
- run: echo "${{ toJSON(steps.eval.outputs) }}"
- name: Fail if flag 1 value mismatch
if: steps.eval.outputs.isAwesomeFeatureEnabled != 'true'
run: exit 1
- name: Fail if flag 2 value mismatch
if: steps.eval.outputs.isPOCFeatureEnabled != 'true'
run: exit 1
- name: Fail if flag 3 value mismatch
if: steps.eval.outputs.nonexisting != ''
if: steps.eval.outputs.nonexisting != 'false'
run: exit 1
- name: Fail if flag 4 value mismatch
if: steps.eval.outputs.nonexistingButTrueDefault != 'true'
run: exit 1
- name: Fail if flag 5 value mismatch
if: steps.eval.outputs.nonExistingEmpty != ''
run: exit 1

test-eval-dep:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ jobs:
with:
sdk-key: ${{ secrets.CONFIGCAT_SDK_KEY }}
flag-keys: |
flag1
flag2
flag1:false
flag2:false
user-attributes: |
id:1234

Expand All @@ -68,7 +68,7 @@ The results of the flag evaluations are stored in the step outputs named with ea
| Parameter | Description | Required | Default |
| ---------------- | ---------------------------------------------------------------------------------------------------------- | ---------- | ------------------- |
| `sdk-key` | SDK key identifying the config to download, also loaded from the `CONFIGCAT_SDK_KEY` environment variable | | |
| `flag-keys` | List of feature flag keys to evaluate. Multiple values must be in separate lines. | ☑ | |
| `flag-keys` | List of feature flag keys and their default values to evaluate. Multiple values must be in separate lines in the following format: `<key>:<default_value>`. Not setting a default value will set the flag's default value to `''`. | &#9745; | |
| `user-attributes` | List of user attributes used for evaluation. Multiple values must be in separate lines in the following format: `<key>:<value>`. Dedicated User Object attributes are mapped like the following: Identifier => id, Email => email, Country => country. | | |
| `base-url` | The CDN base url from where the CLI will download the config JSON. | | ConfigCat CDN servers. |
| `data-governance` | Describes the location of your feature flag and setting data within the ConfigCat CDN. Possible values: `eu`, `global`. | | `global` |
Expand Down
Loading
Loading