git-tools 0.1.4

Git subcommands to help with your workflow.
name: Rust

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]
  schedule:
    - cron: 0 0 1 * *

env:
  CARGO_TERM_COLOR: always

jobs:
  build:

    runs-on: ubuntu-latest

    outputs:
      size: ${{ steps.build.outputs.size }}

    steps:
    - uses: actions/checkout@v2
    - run: cargo test --all-features --verbose
    - run: cargo doc --verbose --all-features

  checks:

    runs-on: ubuntu-latest
    if: ${{ github.event_name == 'pull_request' }}

    steps:
    - uses: actions/checkout@v2
    - run: cargo fmt -- --check
    - uses: actions-rs/clippy-check@v1
      with:
        token: ${{ secrets.GITHUB_TOKEN }}
        args: --all-features -- -D warnings