|
| 1 | +# ******************************************************************************* |
| 2 | +# Copyright (c) 2025 Contributors to the Eclipse Foundation |
| 3 | +# |
| 4 | +# See the NOTICE file(s) distributed with this work for additional |
| 5 | +# information regarding copyright ownership. |
| 6 | +# |
| 7 | +# This program and the accompanying materials are made available under the |
| 8 | +# terms of the Apache License Version 2.0 which is available at |
| 9 | +# https://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# SPDX-License-Identifier: Apache-2.0 |
| 12 | +# ******************************************************************************* |
| 13 | + |
| 14 | +name: Test reference integration |
| 15 | +on: |
| 16 | + pull_request: |
| 17 | + types: [opened, reopened, synchronize] |
| 18 | + merge_group: |
| 19 | + types: [checks_requested] |
| 20 | + |
| 21 | +permissions: |
| 22 | + contents: write |
| 23 | + |
| 24 | +jobs: |
| 25 | + test_reference_integration: |
| 26 | + runs-on: ubuntu-22.04 |
| 27 | + steps: |
| 28 | + - name: Checkout repository |
| 29 | + |
| 30 | + - name: Setup Bazel |
| 31 | + uses: bazel-contrib/ [email protected] |
| 32 | + - name: Setup QNX License |
| 33 | + env: |
| 34 | + SCORE_QNX_LICENSE: ${{ secrets.SCORE_QNX_LICENSE }} |
| 35 | + run: | |
| 36 | + mkdir -p /opt/score_qnx/license |
| 37 | + echo "${SCORE_QNX_LICENSE}" | base64 --decode > /opt/score_qnx/license/licenses |
| 38 | + - name: Install qemu |
| 39 | + run: | |
| 40 | + sudo apt-get update |
| 41 | + sudo apt-get install -y qemu-system |
| 42 | + - name: Enable KVM group perms |
| 43 | + run: | |
| 44 | + echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules |
| 45 | + sudo udevadm control --reload-rules |
| 46 | + sudo udevadm trigger --name-match=kvm |
| 47 | + - name: Bazel execute itf qnx_qemu tests |
| 48 | + env: |
| 49 | + SCORE_QNX_USER: ${{ secrets.SCORE_QNX_USER }} |
| 50 | + SCORE_QNX_PASSWORD: ${{ secrets.SCORE_QNX_PASSWORD }} |
| 51 | + run: | |
| 52 | + cd qnx_qemu |
| 53 | + bazel test --config=qemu-integration --test_output=streamed --credential_helper=*.qnx.com=${{ github.workspace }}/.github/tools/qnx_credential_helper.py -- \ |
| 54 | + //:test_ssh_qemu \ |
| 55 | + //:test_scrample_qemu \ |
| 56 | + |
0 commit comments