name: Laravel Test Runner author: apoloz description: "This action will run your Laravel application's test suite. v2.2" branding: color: 'purple' icon: 'crosshair' inputs: php-version: description: 'PHP version to install' required: false default: '8.2' setup: description: 'If false, setup-php will not be run' required: false default: 'true' runs: using: composite steps: - if: inputs.setup == 'true' name: Setup PHP uses: http://10.55.5.123:3000/apoloz/setup-php@v2 with: php-version: ${{ inputs.php-version }} extensions: sqlite3, gd env: GITHUB_TOKEN: ${{ vars.GHTKN }} - name: Install Dependencies env: GH_TOKEN: ${{ vars.GHTKN }} run: | composer config -g github-oauth.github.com ${{ GH_TOKEN }} composer install --no-progress --prefer-source --optimize-autoloader shell: bash - name: Prepare run: | echo "::group::PHP Modules" php -m echo "::endgroup::" php -r "file_exists('.env') || copy('.env.example', '.env');" php artisan key:generate shell: bash - name: Test Run run: | php artisan test --without-tty | tee test_results echo '```' >> $GITHUB_STEP_SUMMARY cat test_results >> $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY shell: bash