diff --git a/.github/workflows/fit-tests-release-preset.yml b/.github/workflows/fit-tests-release-preset.yml new file mode 100644 index 00000000..37eaa93b --- /dev/null +++ b/.github/workflows/fit-tests-release-preset.yml @@ -0,0 +1,18 @@ +name: Run FIT Testing (Release preset) + +on: + schedule: + - cron: '0 8 * * SUN' + + workflow_dispatch: + +permissions: + id-token: write + contents: read + checks: write + +jobs: + fit: + uses: ./.github/workflows/fit-tests.yml + with: + preset: ${{ vars.FIT_CLI_RELEASE_PRESET || 'op-multi-release' }} diff --git a/.github/workflows/fit-tests.yml b/.github/workflows/fit-tests.yml index 8a4fc272..06f843c2 100644 --- a/.github/workflows/fit-tests.yml +++ b/.github/workflows/fit-tests.yml @@ -24,6 +24,12 @@ on: type: string default: ci + workflow_call: + inputs: + preset: + required: false + type: string + permissions: id-token: write contents: read @@ -33,7 +39,7 @@ jobs: fit: uses: couchbaselabs/fit-cli/.github/workflows/fit-cli.yaml@main with: - preset: ${{ vars.FIT_CLI_PRESET || inputs.preset || 'op-multi-lite' }} + preset: ${{ inputs.preset || vars.FIT_CLI_PRESET || 'op-multi-lite' }} collect_extra_diagnostics: ${{ inputs.collect_extra_diagnostics != false }} performer: 'ruby-fit-performer:main' - channel: ${{ vars.FIT_CLI_CHANNEL || inputs.channel || 'ci' }} + channel: ${{ inputs.channel || vars.FIT_CLI_CHANNEL || 'ci' }}