feat: implement From trait for Node types #117
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CI on Pull Requests | |
on: | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
commitlint: | |
name: Lint Commit Messages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: wagoid/commitlint-github-action@v5 | |
doc: | |
name: Build Doc | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- name: run cargo doc | |
run: cargo doc | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: taiki-e/install-action@v2 | |
with: | |
tool: cargo-hack | |
- name: run cargo check on all feature combinations | |
run: cargo hack check --feature-powerset --no-dev-deps | |
test: | |
name: Test Suite | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: run cargo test | |
run: cargo test --all-features | |
armv7-test: | |
name: ARMv7 Test Suite | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: install armv7 target | |
run: rustup target add armv7-unknown-linux-musleabihf | |
- uses: actions-rs/cargo@v1 | |
with: | |
use-cross: true | |
command: test | |
args: --release --target armv7-unknown-linux-musleabihf tests::kdbx4_entry --all-features | |
formatting: | |
name: Code Formatting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: running rustfmt | |
run: | | |
files=$(find . -name '*.rs') | |
IFS=$'\n'; for file in $files; do | |
rustfmt --check "$file" | |
done | |
coverage: | |
name: Code Coverage | |
runs-on: ubuntu-latest | |
container: | |
image: xd009642/tarpaulin:0.24.0 | |
options: --security-opt seccomp=unconfined | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Generate code coverage | |
run: | | |
cargo tarpaulin --verbose --timeout 120 |