Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

feat: configured workspace crates and update crates #184

feat: configured workspace crates and update crates

feat: configured workspace crates and update crates #184

Workflow file for this run

name: ci
on:
push:
branches:
- "*"
pull_request:
branches:
- "develop"
- "main"
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:develop-nightly
options: --security-opt seccomp=unconfined
steps:
- name: 📁 Checkout
uses: actions/checkout@v3
- name: ⚡ Cache
uses: actions/cache@v3
continue-on-error: false
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
.cargo/
target/
- name: 🔧 Install protoc
uses: arduino/setup-protoc@v1
- name: 🔨 Install tools
run: |
apt update && apt install sudo
sudo apt install libssl-dev build-essential cmake pkg-config llvm-dev libclang-dev clang mosquitto-dev libmosquitto-dev libsqlite3-dev -y
- name: 🔎 Run tests
run: |
cargo +nightly tarpaulin --workspace --timeout 120 --out xml
- name: ☁ Codecov
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
tag:
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Pre release
if: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop'}}
uses: anothrNick/github-tag-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: patch
WITH_V: true
PRERELEASE: true
- name: Patch release
if: ${{ github.ref == 'refs/heads/develop' }}
uses: anothrNick/github-tag-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: patch
WITH_V: true
PRERELEASE: true
- name: Minor release
if: ${{ github.ref == 'refs/heads/main' }}
uses: anothrNick/github-tag-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: minor
WITH_V: true