name: Unstable version tests

on:
  schedule:
    - cron: '0 0 * * *'

jobs:
  unit-tests:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        php-version: [7.4]
        laravel-version: ['8.x-dev as 8', 'dev-master as 8']

    steps:
    - uses: actions/checkout@v2

    - name: install PHP
      uses: shivammathur/setup-php@v2
      with:
        php-version: ${{ matrix.php-version }}

    - run: composer validate

    - name: require Laravel
      run: composer require "laravel/framework:${{ matrix.laravel-version }}" --no-update

    - name: install dependencies
      run: composer update --prefer-dist --no-progress --no-suggest --no-interaction ${{ matrix.composer-flags }}

    - run: composer test

  maze-runner:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        php-version: [7.4]
        laravel-fixture: [laravel-latest]

    steps:
    - uses: actions/checkout@v2

    - name: install PHP
      uses: shivammathur/setup-php@v2
      with:
        php-version: ${{ matrix.php-version }}

    - name: install Ruby
      uses: actions/setup-ruby@v1
      with:
        ruby-version: 2.7

    - run: gem install bundler

    - run: bundle install

    - run: ./.ci/setup-laravel-dev-fixture.sh

    - run: LARAVEL_FIXTURE=${{ matrix.laravel-fixture }} bundle exec bugsnag-maze-runner -c

Migrate unstable tests to GH Actions
Migrate unstable tests to GH Actions
