actions: bluetooth: fix job names and description

Misc fixes including:
- unique job names
- Change description to mention Bluetooth
- Retry west update
- Use latest unit test publication action

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2021-11-13 17:48:10 -05:00 committed by Maureen Helm
commit 75b7a35aec

View file

@ -11,16 +11,16 @@ on:
- "arch/posix/**" - "arch/posix/**"
jobs: jobs:
bsim-build-cancel: bluetooth-test-prep:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Cancel Previous Runs - name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.6.0 uses: styfle/cancel-workflow-action@0.6.0
with: with:
access_token: ${{ github.token }} access_token: ${{ github.token }}
bsim-build: bluetooth-test-build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: bsim-build-cancel needs: bluetooth-test-prep
container: container:
image: zephyrprojectrtos/ci:v0.18.4 image: zephyrprojectrtos/ci:v0.18.4
options: '--entrypoint /bin/bash' options: '--entrypoint /bin/bash'
@ -46,11 +46,10 @@ jobs:
- name: west setup - name: west setup
run: | run: |
west init -l . || true west init -l . || true
west update west update 2>&1 1> west.update.log
- name: Run Bluetooth Tests with BSIM - name: Run Bluetooth Tests with BSIM
run: | run: |
#source zephyr-env.sh
export ZEPHYR_BASE=${PWD} export ZEPHYR_BASE=${PWD}
WORK_DIR=${ZEPHYR_BASE}/bsim_bt_out tests/bluetooth/bsim_bt/compile.sh WORK_DIR=${ZEPHYR_BASE}/bsim_bt_out tests/bluetooth/bsim_bt/compile.sh
RESULTS_FILE=${ZEPHYR_BASE}/${bsim_bt_test_results_file} \ RESULTS_FILE=${ZEPHYR_BASE}/${bsim_bt_test_results_file} \
@ -63,9 +62,9 @@ jobs:
name: Bluetooth Test Results name: Bluetooth Test Results
path: ./bsim_bt_out/bsim_results.xml path: ./bsim_bt_out/bsim_results.xml
publish-test-results: bluetooth-test-results:
name: "Publish Unit Tests Results" name: "Publish Bluetooth Test Results"
needs: bsim-build needs: bluetooth-test-build
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
# the build-and-test job might be skipped, we don't need to run this job then # the build-and-test job might be skipped, we don't need to run this job then
if: success() || failure() if: success() || failure()
@ -76,10 +75,10 @@ jobs:
with: with:
path: artifacts path: artifacts
- name: Publish Unit Test Results - name: Publish Bluetooth Test Results
uses: EnricoMi/publish-unit-test-result-action@v1.12 uses: EnricoMi/publish-unit-test-result-action@v1
with: with:
check_name: Bluetooth Test Results check_name: Bluetooth Test Results
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
files: "**/bsim_results.xml" files: "**/bsim_results.xml"
comment_on_pr: false comment_mode: off