Skip to content

Commit 76b976e

Browse files
committed
chore: update CI
Signed-off-by: lxl66566 <lxl66566@gmail.com>
1 parent 753bfe5 commit 76b976e

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

.github/workflows/test.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@ jobs:
1616
- uses: cargo-bins/cargo-binstall@main
1717
- run: cargo binstall -y --no-symlinks cargo-nextest
1818
- name: Setup sccache-cache
19-
uses: mozilla-actions/sccache-action@v0.0.5
19+
uses: mozilla-actions/sccache-action@v0.0.9
2020
- uses: dtolnay/rust-toolchain@stable
21-
- run: cargo nextest run && cargo test --doc
21+
- run: cargo nextest run --all-features && cargo test --doc
22+
23+
auto-merge:
24+
needs: test
25+
runs-on: ubuntu-latest
26+
if: github.actor == 'dependabot[bot]'
27+
permissions:
28+
pull-requests: write
29+
contents: write
30+
steps:
31+
- name: Enable auto-merge for Dependabot PRs
32+
run: gh pr merge --auto --merge "$PR_URL"
33+
env:
34+
PR_URL: ${{ github.event.pull_request.html_url }}
35+
GH_TOKEN: ${{ secrets.GH_TOKEN }}

src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use clap::Parser;
2-
use git_simple_encrypt::{run, Cli};
2+
use git_simple_encrypt::{Cli, run};
33
use log::LevelFilter;
44

55
fn main() -> anyhow::Result<()> {
@@ -20,7 +20,6 @@ pub fn log_init_with_default_level(level: LevelFilter) {
2020
_ = pretty_env_logger::formatted_builder()
2121
.filter_level(level)
2222
.format_timestamp_millis()
23-
.filter_module("j4rs", LevelFilter::Info)
2423
.parse_default_env()
2524
.try_init();
2625
}

0 commit comments

Comments
 (0)