Skip to content

Use west commands from the Astarte project #1154

Use west commands from the Astarte project

Use west commands from the Astarte project #1154

Workflow file for this run

#
# This file is part of Edgehog.
#
# Copyright 2024 SECO Mind Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#
name: Unit tests
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: unit-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v6
with:
path: edgehog-zephyr-device
- name: Checkout Astarte SDK individually
uses: actions/checkout@v6
with:
repository: astarte-platform/astarte-device-sdk-zephyr
path: astarte-device-sdk-zephyr
ssh-key: ${{ secrets.SSH_EDGEHOG_DEVICE_ZEPHYR_PRIV_KEY }}
- name: Set CI manifest as defaults
working-directory: edgehog-zephyr-device
run: mv west-ci.yml west.yml
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: 3.11
- name: Setup Zephyr project
uses: zephyrproject-rtos/action-zephyr-setup@v1
with:
app-path: edgehog-zephyr-device
toolchains: xtensa-espressif_esp32_zephyr-elf:arm-zephyr-eabi:x86_64-zephyr-elf
- name: Run integration tests
working-directory: edgehog-zephyr-device
run: |
west twister --force-color --ninja -v --inline-logs --filter runnable --integration -T tests/lib