fix-hidden-lifetime-bug 0.2.7

Proc-macro to write an automatic fix for the "hidden lifetime in impl Trait" issue
Documentation
name: CI

on:
  push:
    branches:
      - master
  pull_request:

jobs:
  # == CHECK == #
  check:
    name: Quick check in stable and MSRV
    runs-on: ubuntu-latest
    strategy:
      matrix:
        rust-toolchains:
          - 1.65.0  # MSRV
          - stable
        features__proc-macros: ["", "--features proc-macros"]
        features__showme: ["", "--features showme"]
        exclude:
          - rust-toolchains: 1.65.0
            features__showme: "--features showme"
    steps:
      - name: Install Rust toolchain
        uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: ${{ matrix.rust-toolchains }}
          override: true

      - name: Clone repo
        uses: actions/checkout@v2

      - name: Cargo check
        uses: actions-rs/cargo@v1
        with:
          command: check
          args: |
            --no-default-features
            ${{ matrix.features__proc-macros }}
            ${{ matrix.features__showme }}

  # == BUILD & TEST == #
  build-and-test:
    name: Build and test
    runs-on: ${{ matrix.os }}
    needs: [check]
    strategy:
      fail-fast: false
      matrix:
        os:
          - ubuntu-latest
          - macos-latest
          - windows-latest
        rust-toolchains:
          - 1.65.0
          - stable
          - nightly
        exclude:
          # This setup very often fails with a memory allocation failure on GH.
          - os: windows-latest
            rust-toolchains: 1.65.0
    steps:
      - name: Install Rust toolchain
        uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          override: true
          toolchain: ${{ matrix.rust-toolchains }}

      - name: Clone repo
        uses: actions/checkout@v2

      - name: Cargo test (nightly)
        if: matrix.rust-toolchains == 'nightly'
        uses: actions-rs/cargo@v1
        with:
          command: test
          args: |
            --doc
            --no-default-features
            --features proc-macros
            --features nightly
            -- --nocapture

      - name: Cargo test
        if: matrix.rust-toolchains != 'nightly'
        uses: actions-rs/cargo@v1
        with:
          command: test
          args: |
            --doc
            --no-default-features
            --features proc-macros
            -- --nocapture

  required-jobs:
    name: 'All the required jobs'
    needs:
      - check
      - build-and-test
    runs-on: ubuntu-latest
    if: ${{ always() }}
    steps:
      - name: 'Check success of the required jobs'
        run: |
          RESULT=$(echo "${{ join(needs.*.result, '') }}" | sed -e "s/success//g")
          if [ -n "$RESULT" ]; then
            echo "❌"
            false
          fi
          echo "✅"

  # == MIRI == #
  # miri:
  #   name: Test with miri
  #   runs-on: [ubuntu-latest]
  #   needs: [test-nightly]
  #   strategy:
  #     matrix:
  #       feature--alloc: ['', '--features alloc']
  #   steps:
  #     - name: Clone repo
  #       uses: actions/checkout@v2

  #     - name: Test with miri
  #       run: ./miri_test.sh --no-default-features ${{ matrix.feature--alloc }}