Skip to content

Commit

Permalink
Merge pull request #446 from bugsnag/fix-unstable-tests
Browse files Browse the repository at this point in the history
Fix unstable version tests
  • Loading branch information
imjoehaines authored Jul 26, 2021
2 parents 22f57f3 + b98f4b8 commit b18f6c8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
17 changes: 15 additions & 2 deletions .ci/setup-laravel-dev-fixture.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
#!/usr/bin/env sh

set -e
set -ex

if [ $# -eq 0 ]; then
printf "Error: No Laravel version given\n\n"
printf "Usage:\n"
printf " $ %s <version>\n\n" "$0"
printf "Examples:\n"
printf " $ %s 8.0.0\n" "$0"
printf " $ %s 8.x-dev as 8\n" "$0"

exit 64
fi

LARAVEL_VERSION=$1

cd features/fixtures

Expand All @@ -12,7 +25,7 @@ composer create-project laravel/laravel laravel-latest --no-dev

cd laravel-latest

composer require 'laravel/framework:dev-master as 8' --update-with-dependencies --no-update
composer require laravel/framework:"$LARAVEL_VERSION" --update-with-dependencies --no-update
composer config repositories.bugsnag-laravel '{ "type": "path", "url": "../../../", "options": { "symlink": false } }'
composer require bugsnag/bugsnag-laravel '*' --no-update

Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/unstable-version-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: [7.4]
php-version: [8.0]
laravel-version: ['8.x-dev as 8', 'dev-master as 8']

steps:
Expand All @@ -37,8 +37,9 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: [7.4]
php-version: [8.0]
laravel-fixture: [laravel-latest]
laravel-version: ['8.x-dev as 8'] #, 'dev-master as 8'] # disabled pending package updates in Laravel's skeleton app (PLAT-7040)

steps:
- uses: actions/checkout@v2
Expand All @@ -55,6 +56,6 @@ jobs:
ruby-version: 2.7
bundler-cache: true

- run: ./.ci/setup-laravel-dev-fixture.sh
- run: ./.ci/setup-laravel-dev-fixture.sh ${{ matrix.laravel-version }}

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

0 comments on commit b18f6c8

Please sign in to comment.