Skip to content

add ci/cd workflows for itf test execution #2

add ci/cd workflows for itf test execution

add ci/cd workflows for itf test execution #2

# *******************************************************************************

Check failure on line 1 in .github/workflows/release_verification.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release_verification.yml

Invalid workflow file

(Line: 52, Col: 13): Job 'release_verification' depends on unknown job 'build_host'., (Line: 52, Col: 25): Job 'release_verification' depends on unknown job 'build_target'., (Line: 52, Col: 39): Job 'release_verification' depends on unknown job 'test_host'.
# Copyright (c) 2025 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
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
# Workflow configuration for S-CORE CI - Release Check
# This workflow runs Bazel build and test when triggered by tag creation.
name: Test reference integration
on:
push:
tags:
- 'v*' # Triggers on version tags like v1.0.0
- 'release-*' # Triggers on release tags like release-1.0.0
permissions:
contents: write
jobs:
test_target:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Setup Bazel
uses: bazel-contrib/[email protected]
- name: Setup QNX License
env:
SCORE_QNX_LICENSE: ${{ secrets.SCORE_QNX_LICENSE }}
run: |
mkdir -p /opt/score_qnx/license
echo "${SCORE_QNX_LICENSE}" | base64 --decode > /opt/score_qnx/license/licenses
- name: Bazel execute itf qnx_qemu tests
env:
SCORE_QNX_USER: ${{ secrets.SCORE_QNX_USER }}
SCORE_QNX_PASSWORD: ${{ secrets.SCORE_QNX_PASSWORD }}
run: |
cd qnx_qemu
bazel test --config=qemu-integration --test_output=streamed --credential_helper=*.qnx.com=${{ github.workspace }}/.github/tools/qnx_credential_helper.py -- \
//:test_ssh_qemu \
//:test_scrample_qemu \
release_verification:
runs-on: ubuntu-latest
needs: [build_host, build_target, test_host]
if: always() && (needs.build_host.result == 'failure' || needs.build_target.result == 'failure' || needs.test_host.result == 'failure')
steps:
- name: Remove release and tag (if exists)
uses: nikhilbadyal/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_PATTERN: ${{ github.ref_name }}