subenum 1.1.1

A proc-macro to create subsets of enums, that can be converted to and from.
Documentation
on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

name: CI

jobs:
  all-succeeded:
    name: All Succeeded
    if: always()
    runs-on: ubuntu-latest
    needs:
    - test
    - lint
    steps:
      - name: Check if all jubs succeeded
        uses: re-actors/alls-green@release/v1
        with:
          jobs: ${{ toJSON(needs) }}

  test:
    name: Test
    runs-on: ubuntu-latest
    env:
      RUSTFLAGS: -D warnings
    strategy:
      matrix:
        rust:
          - stable
          - nightly
        flags:
          - ""
          - "--no-default-features"
    steps:
      - uses: actions/checkout@v3
        name: Checkout
      - uses: dtolnay/rust-toolchain@master
        with:
          toolchain: ${{ matrix.rust }}
        name: Install Rust Toolchain
      - run: cargo test ${{ matrix.flags }}
      - run: cargo doc

  lint:
    name: Lint
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        name: Checkout
      - uses: dtolnay/rust-toolchain@stable
        name: Install Rust Toolchain
        with:
          components: rustfmt, clippy
      - run: cargo fmt --all -- --check
      - run: cargo clippy -- -D warnings