Merge pull request #911 from Cofinity-X/chore/upstream-contribution #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright (c) 2024 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) | |
# Copyright (c) 2021,2024 Contributors to the Eclipse Foundation | |
# | |
# See the NOTICE file(s) distributed with this work for additional | |
# information regarding copyright ownership. | |
# | |
# This program and the accompanying materials are made available under the | |
# terms of the Apache License, Version 2.0 which is available at | |
# https://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | |
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | |
# License for the specific language governing permissions and limitations | |
# under the License. | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
# | |
name: IRS Umbrella Cucumber Integration test execution | |
on: | |
workflow_dispatch: # Trigger manually | |
inputs: | |
executionFilter: | |
description: 'Execution filter' | |
required: false | |
default: '!Ignore & !INACTIVE & INTEGRATION_TEST & UMBRELLA' | |
push: | |
branches: | |
- 'main' | |
paths-ignore: | |
- '**/*.md' | |
- '**/*.txt' | |
- '.config/**' | |
- 'docs/**' | |
- 'local/**' | |
- 'irs-load-tests/**' | |
# Cancel previous Test executions if a new one is triggered. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
execute-e2e-tests: | |
runs-on: "${{ github.repository == 'eclipse-tractusx/item-relationship-service' && 'tractusx-runner' || 'ubuntu-latest' }}" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup env | |
id: setup-env | |
uses: ./.github/actions/setup-umbrella-env | |
- name: trigger integration test | |
uses: ./.github/actions/cucumber-integration-test | |
with: | |
regularUserApiKey: "password" | |
adminUserApiKey: "password" | |
cucumberPublishToken: ${{ secrets.IRS_CUCUMBER_PUBLISH_TOKEN }} | |
executionFilter: ${{ github.event.inputs.executionFilter || '!Ignore & !INACTIVE & INTEGRATION_TEST & UMBRELLA' }} | |
- name: Attach logs | |
if: always() && steps.setup-env.outcome == 'success' | |
uses: ./.github/actions/umbrella-irs-logs |