Skip to content

chore(deps): Bump mockall from 0.14.0 to 0.15.0 #3724

chore(deps): Bump mockall from 0.14.0 to 0.15.0

chore(deps): Bump mockall from 0.14.0 to 0.15.0 #3724

Workflow file for this run

name: Test Changes
on:
push:
paths-ignore:
- "README.md"
jobs:
code-quality:
name: Code Quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: cache ~/.cargo
uses: Swatinem/rust-cache@v2
- name: rustup install
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libdbus-1-3 libdbus-1-dev
- name: install protoc
uses: SierraSoftworks/setup-protoc@v3.0.1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: cargo clippy
uses: actions-rs/cargo@v1.0.3
with:
command: clippy
args: --all-targets --all-features
- name: cargo fmt --check
uses: actions-rs/cargo@v1.0.3
with:
command: fmt
args: --check --all
test-platforms:
name: ${{ matrix.os }}-${{ matrix.arch }}-test
runs-on: ${{ matrix.run_on }}
continue-on-error: ${{ matrix.experimental || false }}
permissions:
id-token: write
contents: read
strategy:
matrix:
include:
- arch: amd64
os: windows
run_on: windows-latest
target: x86_64-pc-windows-msvc
extension: .exe
- arch: amd64
run_on: ubuntu-latest
os: linux
target: x86_64-unknown-linux-gnu
coverage: true
setup: |
sudo apt-get update
sudo apt-get install -y libdbus-1-3 libdbus-1-dev
# - arch: "386"
# os: linux
# run_on: ubuntu-20.04
# target: i686-unknown-linux-gnu
# experimental: true
# skiptests: true
# setup: |
# sudo apt-get update
# sudo apt-get install -y libdbus-1-3 libdbus-1-dev
- arch: "arm64"
os: linux
run_on: ubuntu-latest
target: aarch64-unknown-linux-gnu
experimental: true
skiptests: true
builder: cross
- arch: amd64
run_on: macos-latest
os: darwin
target: x86_64-apple-darwin
- arch: arm64
run_on: macos-latest
os: darwin
target: aarch64-apple-darwin
experimental: true
skiptests: true
steps:
- name: setup dependencies
run: ${{ matrix.setup }}
if: matrix.setup
- uses: actions/checkout@v7
- name: rustup install nightly
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
components: llvm-tools-preview
- name: install protoc
if: matrix.builder != 'cross'
uses: SierraSoftworks/setup-protoc@v3.0.1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Cross
if: matrix.builder == 'cross'
shell: bash
run: |
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
cargo binstall --no-confirm cross
- name: cache ~/.cargo
uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.target }}
- name: git config
run: |
git config --global init.defaultBranch "main"
- name: cargo build
if: matrix.skiptests
run: ${{ matrix.builder || 'cargo' }} build --target ${{ matrix.target }} ${{ matrix.flags }}
- name: Reclaim cache ownership from cross
if: matrix.builder == 'cross'
run: sudo chown -R "$(id -u):$(id -g)" "$HOME/.cargo" target
- name: cargo test
uses: actions-rs/cargo@v1.0.3
if: "!matrix.skiptests"
with:
command: test
args: --no-fail-fast --target ${{ matrix.target }} ${{ matrix.flags }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUSTFLAGS: "-C instrument_coverage"
LLVM_PROFILE_FILE: default.profraw
- name: install rustfilt
uses: actions-rs/cargo@v1.0.3
if: matrix.coverage || false
with:
command: install
args: rustfilt
- name: prepare coverage output
if: matrix.coverage || false
shell: pwsh
run: |
Write-Host "Merging raw profile output files"
&"$(rustc --print target-libdir)/../bin/llvm-profdata" merge -sparse default.profraw -o default.profdata
$latest_asset = Get-ChildItem -Path ./target/${{ matrix.target }}/debug/deps -Filter "git_tool-*" -File `
| Where-Object { $_.Name.EndsWith(".exe") -or (-not $_.Name.Contains(".")) } `
| Sort-Object -Top 1 -Property LastWriteTime
Write-Host "Latest Asset: $latest_asset"
Write-Host "Exporting LCOV coverage report"
&"$(rustc --print target-libdir)/../bin/llvm-cov" export -instr-profile default.profdata $latest_asset `
-Xdemangler=rustfilt `
-ignore-filename-regex='.cargo|rustc' `
-compilation-dir=src `
-format=lcov > lcov.info
- name: get secrets - codecov
uses: hashicorp/vault-action@v4.0.0
if: matrix.coverage || false
with:
url: https://vault.sierrasoftworks.com
method: jwt
path: github-actions
role: pull_request
jwtGithubAudience: https://vault.sierrasoftworks.com
secrets: |
secrets/data/repos/SierraSoftworks/git-tool/public/codecov token | CODECOV_TOKEN;
- name: codecov upload
uses: codecov/codecov-action@v7
if: matrix.coverage || false
with:
token: ${{ env.CODECOV_TOKEN }}
# - uses: anchore/sbom-action@v0
# with:
# file: "target/${{ matrix.target }}/debug/git-tool${{ matrix.extension }}"
# format: 'spdx-json'
# output-file: 'sbom.spdx.json'
# upload-artifact: false
test-done:
name: Tests Complete
needs:
- test-platforms
- code-quality
runs-on: ubuntu-latest
steps:
- run: echo "Tests Complete for All Platforms"