Update actions version #20
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: Api Response Style Checks | |
on: [push, pull_request] | |
jobs: | |
style: | |
runs-on: ubuntu-latest | |
name: Api Response Style Checks | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
- name: Cache Dependencies | |
id: composer-cache-style | |
uses: actions/cache@v3 | |
with: | |
path: vendor | |
key: ubuntu-composer-cache-style-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ubuntu-php-style | |
- name: Install Dependencies | |
if: steps.composer-cache.outputs.cache-hit != 'true' | |
run: composer install --prefer-dist --no-progress --no-suggest | |
- name: Check Coding Style | |
run: vendor/bin/phpcs src/ |