add ci/cd workflows for itf test execution #2
Workflow file for this run
This file contains hidden or 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
| # ******************************************************************************* | ||
|
Check failure on line 1 in .github/workflows/release_verification.yml
|
||
| # 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 }} | ||