Skip to content

fix(sessions): reap stale markers at 45 min with independent heartbeat #416

fix(sessions): reap stale markers at 45 min with independent heartbeat

fix(sessions): reap stale markers at 45 min with independent heartbeat #416

Workflow file for this run

name: ci-main
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-main-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v4
- name: Install Linux system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
pkg-config \
libglib2.0-dev \
libgtk-3-dev \
libxdo-dev \
libxkbcommon-dev
sudo apt-get install -y libayatana-appindicator3-dev || sudo apt-get install -y libappindicator3-dev
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt --all -- --check
- name: Lint (clippy)
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
- name: Check docs
run: cargo doc --workspace --no-deps --all-features
env:
RUSTDOCFLAGS: -Dwarnings
test:
needs: lint
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 60
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v4
- name: Install Linux system dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
pkg-config \
libglib2.0-dev \
libgtk-3-dev \
libxdo-dev \
libxkbcommon-dev
sudo apt-get install -y libayatana-appindicator3-dev || sudo apt-get install -y libappindicator3-dev
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test --workspace -- --include-ignored
docs:
needs: lint
runs-on: ubuntu-latest
timeout-minutes: 30
env:
CARGO_TERM_COLOR: always
MDBOOK_VERSION: 0.5.2
MDBOOK_MERMAID_VERSION: 0.17.0
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
shared-key: docs
cache-on-failure: true
- name: Install docs toolchain
run: |
cargo install --locked --version "${MDBOOK_VERSION}" mdbook
cargo install --locked --version "${MDBOOK_MERMAID_VERSION}" mdbook-mermaid
- name: Build docs
run: make docs-build