From c623767f6522392e1ea3fe0caf47da9e4055d312 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 15 Apr 2024 19:34:43 -0700 Subject: add some workflows for CI and dependabot config --- src/x509-info/.github/workflows/ci.yml | 47 ++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/x509-info/.github/workflows/ci.yml (limited to 'src/x509-info/.github/workflows/ci.yml') diff --git a/src/x509-info/.github/workflows/ci.yml b/src/x509-info/.github/workflows/ci.yml new file mode 100644 index 0000000..271b774 --- /dev/null +++ b/src/x509-info/.github/workflows/ci.yml @@ -0,0 +1,47 @@ +name: CI checks + +on: [push, pull_request] + +jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run tests + run: cargo test + - name: Verify working directory is clean + run: git diff --exit-code + + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: cargo fetch + - name: Build for target + run: cargo build --verbose + + bitrot: + name: Bitrot + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check unused code + run: cargo check --all-targets --all-features + + clippy: + name: Clippy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check clippy + run: cargo clippy + + fmt: + name: Rustfmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check formatting + run: cargo fmt --all -- --check -- cgit v1.2.3