Skip to content

Update shivammathur/setup-php digest to 6727113 #87

Update shivammathur/setup-php digest to 6727113

Update shivammathur/setup-php digest to 6727113 #87

Workflow file for this run

on: push
name: LaravelCI
jobs:
laravel-tests-phpunit:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14.0
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: test
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: shivammathur/setup-php@67271131b1870a5a241694badbda0ac2cae0648e
with:
php-version: '8.1'
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache
- name: Prepare Laravel Application
run: |
cp .env.ci .env
php artisan key:generate
vendor/bin/phpunit