Skip to content

Serde

Serde #119

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
jobs:
unit_tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
- name: cargo test --features enum-map
uses: actions-rs/cargo@v1
with:
command: test
args: --features enum-map
- name: cargo test --features dev
uses: actions-rs/cargo@v1
with:
command: test
args: --features dev
- name: cargo test --features arbitrary
uses: actions-rs/cargo@v1
with:
command: test
args: --features arbitrary
- name: cargo test --all-features
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
- name: Clippy Check
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
package_build:
name: Package Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build package
uses: actions-rs/cargo@v1
with:
command: package
args: --allow-dirty