Skip to content

fix(budget): improve budget adjustment from feedback #83

fix(budget): improve budget adjustment from feedback

fix(budget): improve budget adjustment from feedback #83

Workflow file for this run

name: ci
on:
pull_request:
push:
branches:
- "main"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
RUSTFLAGS: "-C link-arg=-fuse-ld=lld -D warnings"
GH_USER: ${{ github.repository_owner }}
GH_TOKEN: ${{ secrets.GH_PRIVATE_TOKEN }}
jobs:
check_and_test:
name: "check and test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- name: Cache Cargo build files
uses: Leafwing-Studios/cargo-cache@v1
- name: Prepare build env
run: |
git config --global credential.helper store
git config --global --replace-all url.https://github.com/.insteadOf ssh://[email protected]/
git config --global --add url.https://github.com/.insteadOf [email protected]:
mkdir ~/.cargo && echo "[net]\ngit-fetch-with-cli = true" > ~/.cargo/config.toml
(echo url=https://github.com; echo "username=${GH_USER}"; echo "password=${GH_TOKEN}"; echo ) | git credential approve
sudo apt-get install -y lld librdkafka-dev libsasl2-dev
- run: cargo check
- run: cargo fmt --all -- --check
- run: cargo clippy -- -D warnings
- name: Unit tests
run: cargo test --lib -- --nocapture
- name: Integration tests
run: cargo test --test '*'