Skip to content

Update OpenAPI bindings #294

Update OpenAPI bindings

Update OpenAPI bindings #294

Workflow file for this run

name: Rust tests
on:
workflow_dispatch:
push:
branches:
- "main"
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
ci-pass:
name: Check if tests passed
runs-on: ubuntu-24.04
needs:
- test
steps:
- name: Check if tests passed
run: exit 0
test:
name: ${{ matrix.os }} / default
runs-on: ${{ matrix.os || 'ubuntu-24.04' }}
strategy:
matrix:
os:
- ubuntu-24.04
- macOS-14
- windows-2022
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install rust
uses: dtolnay/rust-toolchain@315e265cd78dad1e1dcf3a5074f6d6c47029d5aa # stable
with:
toolchain: stable
- name: Cache cargo registry
uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
- name: Test
run: cargo test --workspace --all-features
coverage:
name: Coverage
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install rust
uses: dtolnay/rust-toolchain@315e265cd78dad1e1dcf3a5074f6d6c47029d5aa # stable
with:
toolchain: stable
components: llvm-tools
- name: Cache cargo registry
uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
- name: Install cargo-llvm-cov
run: cargo install cargo-llvm-cov --version 0.5.38
- name: Generate coverage
run: cargo llvm-cov --all-features --lcov --output-path lcov.info --ignore-filename-regex "crates/bitwarden-api-"
- name: Upload to codecov.io
uses: codecov/codecov-action@7f8b4b4bde536c465e797be725718b88c5d95e0e # v5.1.1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}