[deps]: Update bitwarden-sm digest to ab7ae36 - autoclosed #7245
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Rust tests | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - "main" | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| permissions: | |
| contents: read | |
| jobs: | |
| ci-pass: | |
| name: CI is green | |
| runs-on: ubuntu-22.04 | |
| needs: | |
| - test | |
| - wasm | |
| steps: | |
| - name: Exit 0 | |
| run: exit 0 | |
| test: | |
| name: ${{ matrix.os }} / default | |
| runs-on: ${{ matrix.os || 'ubuntu-22.04' }} | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-22.04 | |
| - macOS-14 | |
| - windows-2022 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Install rust | |
| uses: dtolnay/rust-toolchain@6d653acede28d24f02e3cd41383119e8b1b35921 # stable | |
| with: | |
| toolchain: stable | |
| - name: Cache cargo registry | |
| uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5 | |
| - name: Test | |
| # Termporarily exclude NAPI due to a test error on windows | |
| run: cargo test --workspace --exclude bitwarden-napi --all-features | |
| coverage: | |
| name: Coverage | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Install rust | |
| uses: dtolnay/rust-toolchain@6d653acede28d24f02e3cd41383119e8b1b35921 # 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@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2 | |
| wasm: | |
| name: WASM | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Install rust | |
| uses: dtolnay/rust-toolchain@6d653acede28d24f02e3cd41383119e8b1b35921 # stable | |
| with: | |
| toolchain: stable | |
| targets: wasm32-unknown-unknown | |
| - name: Cache cargo registry | |
| uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5 | |
| - name: Check | |
| run: cargo check -p bitwarden-wasm --target wasm32-unknown-unknown | |
| - name: Install wasm-pack | |
| run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
| - name: Wasm-pack test firefox | |
| run: wasm-pack test --headless --firefox crates/bitwarden-wasm | |
| - name: Wasm-pack test chrome | |
| run: wasm-pack test --headless --chrome crates/bitwarden-wasm |