gitall 0.6.0

Executes git(1) commands in repos below a parent directory
Documentation
name: Continuous Integration

on:
  pull_request:
  push:

env:
  CARGO_TERM_COLOR: always

jobs:
  test:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        build:
          - linux
          - linux-musl
          - linux-aarch64
          - macos
          - win-gnu
          - win-msvc

        include:
          - build: linux
            os: ubuntu-latest
            rust: stable
            cross: false
            target: x86_64-unknown-linux-gnu
          - build: linux-musl
            os: ubuntu-latest
            rust: stable
            cross: true
            target: x86_64-unknown-linux-musl
          - build: linux-aarch64
            os: ubuntu-latest
            rust: stable
            cross: true
            target: aarch64-unknown-linux-gnu
          - build: macos
            os: macos-latest
            rust: stable
            cross: false
            target: x86_64-apple-darwin
          - build: win-gnu
            os: ubuntu-latest
            rust: stable
            cross: true
            target: x86_64-pc-windows-gnu
          - build: win-msvc
            os: windows-latest
            rust: stable
            cross: false
            target: x86_64-pc-windows-msvc

    steps:
      - uses: actions/checkout@v2

      - name: Install Rust
        uses: actions-rs/toolchain@v1
        with:
          toolchain: ${{ matrix.rust }}
          target: ${{ matrix.target }}
          override: true

      - name: cargo build
        uses: actions-rs/cargo@v1
        with:
          command: build
          use-cross: ${{ matrix.cross }}
          args: --target ${{ matrix.target }} --verbose

      - name: cargo test
        uses: actions-rs/cargo@v1
        with:
          command: test
          use-cross: ${{ matrix.cross }}
          args: --target ${{ matrix.target }} --verbose

  rustfmt:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions-rs/toolchain@v1
        with:
          toolchain: stable
          profile: minimal
          override: true
      - run: rustup component add rustfmt
      - name: rustfmt
        uses: actions-rs/cargo@v1
        with:
          command: fmt
          args: --all -- --check