build(deps-dev): Bump pestphp/pest from 2.16.0 to 2.24.1 in /laravel-one #70
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: laravel-one-test | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- 'laravel-one/**' | |
pull_request: | |
branches: [ master ] | |
paths: | |
- 'laravel-one/**' | |
defaults: | |
run: | |
working-directory: ./laravel-one | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
php_version: [ 8.1, 8.2 ] | |
include: | |
- php_version: 8.2 | |
record_coverage: true | |
concurrency: | |
group: laravel-one-test-${{ github.workflow }}-${{ github.ref }}-${{ matrix.php_version }} | |
cancel-in-progress: true | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Initialize PHP ${{ matrix.php_version }} | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php_version }} | |
coverage: pcov | |
- name: Configure Composer cache | |
id: composer-cache | |
uses: actions/cache@v3 | |
with: | |
path: laravel-one/vendor | |
key: ${{ runner.os }}-node-php_${{ matrix.php_version }}-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node-php_${{ matrix.php_version }}- | |
- name: Validate Composer.json | |
run: composer validate --strict | |
- name: Composer install | |
if: steps.composer-cache.outputs.cache-hit != 'true' | |
run: composer install -o --no-interaction --prefer-dist | |
- name: Web pages cache | |
id: web-pages-cache | |
uses: actions/cache@v3 | |
with: | |
path: laravel-one/.cache | |
key: ${{ runner.os }}-node-php_${{ matrix.php_version }}-web-pages-cache-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node-php_${{ matrix.php_version }}-web-pages-cache- | |
- name: Run tests | |
run: | | |
php laravel-one test:arkitect | |
php laravel-one test | |
- name: Send coverage | |
if: ${{ matrix.record_coverage }} | |
run: bash <(curl -s https://codecov.io/bash) -f coverage/clover.xml -F laravel-one | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |