Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmf committed Jul 2, 2024
2 parents 27940e4 + de18f7a commit 4b8becd
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
41 changes: 39 additions & 2 deletions .github/workflows/integration-test-DEV.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: IRS DEV Cucumber Integration test execution

on:
workflow_dispatch: # Trigger manually
inputs:
executionFilter:
description: 'Execution filter'
required: false
default: '!Ignore & !INACTIVE & INTEGRATION_TEST & DEV'
push:
branches:
- 'main'
Expand All @@ -19,12 +24,44 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true




jobs:

check-config:
runs-on: ubuntu-latest
steps:
- name: debug executionFilter
run: echo 'executionFilter "${{github.event.inputs.executionFilter}}"'
- name: debug executionFilter with default
run: echo 'executionFilter ${{ github.event.inputs.executionFilter || '!Ignore & !INACTIVE & INTEGRATION_TEST & DEV' }}"'
- name: Check if DEV_REGULAR_USER_API_KEY is defined
run: |
if [[ -z "${{ secrets.DEV_REGULAR_USER_API_KEY }}" ]]; then
echo "Error: Missing secret: Please configure DEV_REGULAR_USER_API_KEY."
exit 1
fi
- name: Check if DEV_ADMIN_USER_API_KEY is defined
run: |
if [[ -z "${{ secrets.DEV_ADMIN_USER_API_KEY }}" ]]; then
echo "Error: Missing secret: Please configure DEV_ADMIN_USER_API_KEY."
exit 1
fi
- name: Check if IRS_CUCUMBER_PUBLISH_TOKEN is defined
run: |
if [[ -z "${{ secrets.IRS_CUCUMBER_PUBLISH_TOKEN }}" ]]; then
echo "Error: Missing secret: Please configure IRS_CUCUMBER_PUBLISH_TOKEN."
exit 1
fi
shell: bash

trigger-integration-test:
needs: check-config
uses: ./.github/workflows/cucumber-integration-test.yaml
secrets:
regularUserApiKey: ${{ secrets.DEV_REGULAR_USER_API_KEY }}
adminUserApiKey: ${{ secrets.DEV_ADMIN_USER_API_KEY }}
cucumberPublishToken: ${{ secrets.IRS_CUCUMBER_PUBLISH_TOKEN }}
cucumberPublishToken: ${{ secrets.IRS_CUCUMBER_PUBLISH_TOKEN }}}
with:
executionFilter: "!Ignore & !INACTIVE & INTEGRATION_TEST & DEV"
executionFilter: ${{ github.event.inputs.executionFilter || '!Ignore & !INACTIVE & INTEGRATION_TEST & DEV' }}
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ class GetPolicyTests {

@Test
void getPolicies() {
// TODO testcommit, remove this line again
// arrange
final String policyId = randomPolicyId();
final List<Policy> policies = List.of(Policy.builder()
Expand Down

0 comments on commit 4b8becd

Please sign in to comment.