Commit d44e36d4 authored by Alberto Escolar Piedras's avatar Alberto Escolar Piedras Committed by Stephanos Ioannidis
Browse files

ci: bluetooth worflow: Rename to Bsim



This workflow and tests do not cover just Bluetooth anymore
but also cover other networking areas.
Rename the workflow and artifacts for clarity.

Signed-off-by: default avatarAlberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
parent a20046b5
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
name: Publish Bluetooth Tests Results
name: Publish BabbleSim Tests Results

on:
  workflow_run:
    workflows: ["Bluetooth Tests"]
    workflows: ["BabbleSim Tests"]
    types:
      - completed
jobs:
  bluetooth-test-results:
    name: "Publish Bluetooth Test Results"
  bsim-test-results:
    name: "Publish BabbleSim Test Results"
    runs-on: ubuntu-20.04
    if: github.event.workflow_run.conclusion != 'skipped'

@@ -15,15 +15,15 @@ jobs:
      - name: Download artifacts
        uses: dawidd6/action-download-artifact@v2
        with:
          workflow: bluetooth-tests.yaml
          workflow: bsim-tests.yaml
          run_id: ${{ github.event.workflow_run.id }}

      - name: Publish Bluetooth Test Results
      - name: Publish BabbleSim Test Results
        uses: EnricoMi/publish-unit-test-result-action@v1
        with:
          check_name: Bluetooth Test Results
          check_name: BabbleSim Test Results
          comment_mode: off
          commit: ${{ github.event.workflow_run.head_sha }}
          event_file: event/event.json
          event_name: ${{ github.event.workflow_run.event }}
          files: "bluetooth-test-results/**/bsim_results.xml"
          files: "bsim-test-results/**/bsim_results.xml"
+11 −10
Original line number Diff line number Diff line
name: Bluetooth Tests
name: BabbleSim Tests

on:
  pull_request:
    paths:
      - ".github/workflows/bluetooth-test*.yaml"
      - ".github/workflows/bsim-test*.yaml"
      - "west.yml"
      - "subsys/bluetooth/**"
      - "tests/bsim/bluetooth/**"
      - "tests/bsim/**"
      - "samples/bluetooth/**"
      - "samples/net/sockets/echo_*/**"
      - "boards/posix/**"
      - "soc/posix/**"
      - "arch/posix/**"
@@ -17,7 +18,7 @@ concurrency:
  cancel-in-progress: true

jobs:
  bluetooth-test:
  bsim-test:
    if: github.repository_owner == 'zephyrproject-rtos'
    runs-on: zephyr-runner-linux-x64-4xlarge
    container:
@@ -31,7 +32,7 @@ jobs:
      BSIM_OUT_PATH: /opt/bsim/
      BSIM_COMPONENTS_PATH: /opt/bsim/components
      EDTT_PATH: ../tools/edtt
      bsim_bt_test_results_file: ./bsim_bt_out/bsim_results.xml
      bsim_test_results_file: ./bsim_out/bsim_results.xml
    steps:
      - name: Apply container owner mismatch workaround
        run: |
@@ -67,20 +68,20 @@ jobs:
          west update --path-cache /github/cache/zephyrproject 2>&1 1> west.update.log || west update --path-cache /github/cache/zephyrproject 2>&1 1> west.update.log || ( rm -rf ../modules ../bootloader ../tools && west update --path-cache /github/cache/zephyrproject)
          west forall -c 'git reset --hard HEAD'

      - name: Run Bluetooth Tests with BSIM
      - name: Run Networking Tests with BSIM
        run: |
          export ZEPHYR_BASE=${PWD}
          WORK_DIR=${ZEPHYR_BASE}/bsim_bt_out tests/bsim/compile.sh
          RESULTS_FILE=${ZEPHYR_BASE}/${bsim_bt_test_results_file} \
          WORK_DIR=${ZEPHYR_BASE}/bsim_out tests/bsim/compile.sh
          RESULTS_FILE=${ZEPHYR_BASE}/${bsim_test_results_file} \
          SEARCH_PATH=tests/bsim/ tests/bsim/run_parallel.sh

      - name: Upload Test Results
        if: always()
        uses: actions/upload-artifact@v3
        with:
          name: bluetooth-test-results
          name: bsim-test-results
          path: |
            ./bsim_bt_out/bsim_results.xml
            ./bsim_out/bsim_results.xml
            ${{ github.event_path }}

      - name: Upload Event Details