File tree Expand file tree Collapse file tree 1 file changed +21
-7
lines changed
Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Original file line number Diff line number Diff line change 11name : Cargo Build & Test
2-
32on :
43 push :
54 pull_request :
65 workflow_dispatch :
7-
86env :
97 CARGO_TERM_COLOR : always
10-
118jobs :
12- build_and_test :
9+ build-and-test :
1310 name : Build & Test
1411 runs-on : ubuntu-latest
1512 strategy :
3128 - run : cargo check-all-features -- --verbose
3229 - run : cargo build-all-features -- --verbose
3330 - run : cargo test-all-features -- --verbose
34-
3531 rustfmt :
3632 name : Check Format
3733 runs-on : ubuntu-latest
4238 - run : rustup update stable && rustup default stable
4339 - run : rustup component add rustfmt
4440 - run : cargo fmt --all --check
45-
46- build_docs :
41+ docs :
4742 name : Docs
4843 runs-on : ubuntu-latest
4944 steps :
5247 fetch-depth : 0
5348 - run : rustup update nightly && rustup default nightly
5449 - run : cargo +nightly doc --all-features --no-deps
50+ dependabot :
51+ name : Dependabot Auto-merge
52+ if : ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
53+ needs : [build-and-test, rustfmt, docs]
54+ runs-on : ubuntu-latest
55+ permissions :
56+ pull-requests : write
57+ contents : write
58+ steps :
59+ - id : metadata
60+ uses : dependabot/fetch-metadata@v2
61+ with :
62+ github-token : " ${{ secrets.GITHUB_TOKEN }}"
63+ - run : |
64+ gh pr review --approve "$PR_URL"
65+ gh pr merge --squash --auto "$PR_URL"
66+ env:
67+ PR_URL: ${{github.event.pull_request.html_url}}
68+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments