diff --git a/.github/workflows/php81.yml b/.github/workflows/php81.yml new file mode 100644 index 0000000..4d69b1f --- /dev/null +++ b/.github/workflows/php81.yml @@ -0,0 +1,35 @@ +name: Test + +on: + pull_request: + branches: + - "*" + push: + branches: + - "*" + +jobs: + checks: + name: Check PHP 8.1 + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up PHP 8.1 + uses: shivammathur/setup-php@v2 + with: + php-version: '8.1' + + - name: Install Dependencies + run: composer install --prefer-dist --ignore-platform-reqs --no-interaction + + - name: Check code styling + run: composer ecs-check + + - name: Create keys + run: sh ./bin/create_keys + + - name: Run unit and feature tests + run: composer test diff --git a/composer.json b/composer.json index 669ca27..f04efc9 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "passport" ], "require": { - "php": "^8.2", + "php": "^8.1", "lcobucci/jwt": "^4.0|^4.3|^5.0", "league/oauth2-server": "^8.2.0", "laravel/passport": "^11.0|^12.0",