Skip to content

Bump clap from 4.5.19 to 4.5.20 #138

Bump clap from 4.5.19 to 4.5.20

Bump clap from 4.5.19 to 4.5.20 #138

Workflow file for this run

name: build
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
build:
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
~/.rustup
/usr/local/cargo
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt, clippy
cache: false
- name: Rustfmt Check
uses: actions-rust-lang/rustfmt@v1
- name: Run clippy
run: cargo clippy --all -- -D warnings
- name: Cargo Test
run: cargo test -q
- name: merge
if: github.event_name == 'pull_request'
run: |
gh pr merge --merge $GITHUB_HEAD_REF
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}