Skip to content

fix(ota): handle wait for reboot to happen #909

fix(ota): handle wait for reboot to happen

fix(ota): handle wait for reboot to happen #909

Workflow file for this run

# This file is part of Edgehog.
#
# Copyright 2022 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: Edgehog Device Runtime Codecoverage upload
on:
# Run when pushing to stable branches
push:
branches:
- 'main'
- 'release-*'
pull_request:
env:
PB_REL: https://github.com/protocolbuffers/protobuf/releases
jobs:
codecov:
name: cargo test
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
steps:
- name: Install libudev, and Protoc
run: |
sudo apt update
sudo apt-get install -y libudev-dev
curl -LO $PB_REL/download/v22.2/protoc-22.2-linux-x86_64.zip
unzip protoc-22.2-linux-x86_64.zip -d $HOME/.local
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Checkout sources
uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
version: '0.20.1'
args: '--ignore-tests --lib -- --test-threads 1'
- name: Upload to codecov.io
uses: codecov/codecov-action@v2
with:
token: ${{secrets.CODECOV_TOKEN}}