diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a26e225..5f285ed 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -14,3 +14,7 @@ updates: schedule: interval: weekly open-pull-requests-limit: 10 + - package-ecosystem: "nix" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml new file mode 100644 index 0000000..9969a40 --- /dev/null +++ b/.github/workflows/bench.yml @@ -0,0 +1,45 @@ +bench: + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && vars.BENCHER_PROJECT != '' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + with: + save-if: ${{ github.ref == 'refs/heads/main' }} + - uses: bencherdev/bencher@v0 + - run: | + bencher run \ + --project ${{ vars.BENCHER_PROJECT }} \ + --token ${{ secrets.BENCHER_API_TOKEN }} \ + --branch main \ + --adapter rust_criterion \ + "cargo bench --all-features" + +bench-pr: + if: ${{ github.event_name == 'pull_request' && vars.BENCHER_PROJECT != '' }} + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + with: + save-if: ${{ github.ref == 'refs/heads/main' }} + - uses: bencherdev/bencher@v0 + - run: | + bencher run \ + --project ${{ vars.BENCHER_PROJECT }} \ + --token ${{ secrets.BENCHER_API_TOKEN }} \ + --branch ${{ github.head_ref }} \ + --start-point main \ + --start-point-reset \ + --adapter rust_criterion \ + --error-on-alert \ + --github-actions ${{ secrets.GITHUB_TOKEN }} \ + "cargo bench --all-features" diff --git a/CHANGELOG.md b/CHANGELOG.md index f3a0b97..b1cd36a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.4.4](https://github.com/JayanAXHF/gitv/compare/gitv-tui-v0.4.3...gitv-tui-v0.4.4) - 2026-04-29 + +### Other + +- Add nix to dependabot.yml +- *(benchmarks)* add bencher regression tracking + ## [0.4.3](https://github.com/JayanAXHF/gitv/compare/gitv-tui-v0.4.2...gitv-tui-v0.4.3) - 2026-04-19 ### Other diff --git a/Cargo.lock b/Cargo.lock index f40981b..56ea28a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1499,7 +1499,7 @@ dependencies = [ [[package]] name = "gitv-tui" -version = "0.4.3" +version = "0.4.4" dependencies = [ "anyhow", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index 913e9f0..e0f9543 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gitv-tui" -version = "0.4.3" +version = "0.4.4" edition = "2024" build = "build.rs" description = "A terminal-based GitHub client built with Rust and Ratatui."