Skip to content

Add missing validation #3

Add missing validation

Add missing validation #3

Workflow file for this run

name: Rust
on:
push:
branches:
- master
paths:
- '.github/workflows/rust.yml'
- 'src/**.rs'
- 'tests/**.rs'
- 'Cargo.toml'
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- '**'
paths:
- '.github/workflows/rust.yml'
- 'src/**.rs'
- 'tests/**.rs'
- 'Cargo.toml'
jobs:
build:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- name: Install Rust Unix
run: |
if rustup --version >/dev/null 2>&1; then
rustup update
else
curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain stable
echo ::add-path::$HOME/.cargo/bin
fi
- name: Rust version
run: |
cargo --version
rustc --version
- name: Check build
run: cargo clippy --features serde
- name: Test
run: cargo test --features serde