Skip to content

Update observer to collect CPU utilization data #1531

Update observer to collect CPU utilization data

Update observer to collect CPU utilization data #1531

Workflow file for this run

name: Continuous integration
on:
pull_request:
push:
branches:
- main
jobs:
cargo-deny: # only runs on Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: EmbarkStudios/cargo-deny-action@v1
check:
name: Check
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- uses: actions-rust-lang/[email protected]
- name: Install protobuf (Apt)
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
if: matrix.os == 'ubuntu-latest'
- name: Install protobuf (Brew)
run: brew install protobuf
if: matrix.os == 'macos-latest'
- run: cargo check
test:
name: Test Suite
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- uses: actions-rust-lang/[email protected]
- name: Install protobuf (Apt)
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
if: matrix.os == 'ubuntu-latest'
- name: Install protobuf (Brew)
run: brew install protobuf
if: matrix.os == 'macos-latest'
- run: cargo test
fmt:
name: Rustfmt
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- uses: actions-rust-lang/[email protected]
with:
components: rustfmt
- run: rustup component add rustfmt
- run: cargo fmt --all -- --check
clippy_check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/[email protected]
with:
components: clippy
- name: Install protobuf (Apt)
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
if: matrix.os == 'ubuntu-latest'
- name: Install protobuf (Brew)
run: brew install protobuf
if: matrix.os == 'macos-latest'
- run: cargo clippy --all-features
integration-test:
name: Integration Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- uses: actions-rust-lang/[email protected]
- name: Install protobuf (Apt)
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
if: matrix.os == 'ubuntu-latest'
- name: Install protobuf (Brew)
run: brew install protobuf
if: matrix.os == 'macos-latest'
- run: cargo test -p sheepdog
timeout-minutes: 30