Skip to content

REST-64: Update workflow file and add .env #5

REST-64: Update workflow file and add .env

REST-64: Update workflow file and add .env #5

Workflow file for this run

name: PHP Coding Standards
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout app
uses: actions/checkout@v3
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Install PHP extensions
run: sudo apt install php-ast
- name: Run code quality checks
run: composer lint
- name: Run code analysis checks
run: composer phan