leaprs 0.2.2

Safe wrapper for the LeapC Ultraleap (Leap Motion) hand tracking device API.
Documentation
name: Pull Request

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    strategy:
      matrix:
        include:
          - sdk-redist-ref: gemini
            cargo-features: --no-default-features --features nalgebra --features glam --features gemini
          - sdk-redist-ref: orion
            cargo-features: --no-default-features --features nalgebra --features glam
    name: check
    runs-on: windows-latest

    steps:
    - uses: actions/checkout@v3
    - uses: Swatinem/rust-cache@v1
    - name: Check
      run: cargo check ${{ matrix.cargo-features }}
    - name: Check Examples
      run: cargo check ${{ matrix.cargo-features }} --examples
    - name: Check Tests
      run: cargo check ${{ matrix.cargo-features }} --tests
    - name: Doc
      run: cargo doc --features nalgebra --features glam
    - name: Style
      run: cargo fmt -- --check
    - name: Clippy
      run: cargo clippy -- -D warnings

  dependabot:
    name: 'Dependabot automerge'
    needs: [build]
    permissions:
      pull-requests: write
      contents: write
    runs-on: ubuntu-latest
    if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}} # Detect that the PR author is dependabot
    steps:
      - uses: fastify/github-action-merge-dependabot@v3.0.0
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}