orcs 0.0.8

Microservices monorepo orchestration tool
Documentation
on:
  pull_request:
    branches:
      - develop
      - main

name: ci

jobs:
  check:
    strategy:
      matrix:
        rust:
          - stable
          - beta
          - nightly
    runs-on: ubuntu-latest
    steps:
      - name: checkout
        uses: actions/checkout@v2
      - name: install toolchain
        uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: ${{ matrix.rust }}
          components: rustfmt, clippy
          override: true
      - name: check
        uses: actions-rs/cargo@v1
        with:
          command: check
      - name: fmt
        uses: actions-rs/cargo@v1
        with:
          command: fmt
          args: --all -- --check
      - name: clippy
        uses: actions-rs/clippy-check@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          args: --all-features

  test:
    strategy:
      matrix:
        os:
          - macos-latest
          - ubuntu-latest
          # Temporary disabled while we switch away from bash
          # - windows-latest
        rust:
          - stable
          - beta
          - nightly
    runs-on: ${{ matrix.os }}
    env:
      RUST_BACKTRACE: 1
    steps:
      - name: checkout
        uses: actions/checkout@v2
      - name: install toolchain
        uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: ${{ matrix.rust }}
          override: true
      - name: setup git
        run: |
          git config --global user.name "Continuous Integration"
          git config --global user.email "continuous@integration.invalid"
      - name: test
        uses: actions-rs/cargo@v1
        with:
          command: test