This repository has been archived by the owner on Feb 25, 2024. It is now read-only.
Bump actions/checkout from 3.3.0 to 4.1.1 #58
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: Build PHP | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Use Checkout | |
uses: actions/checkout@v4.1.1 | |
- name: Use PHP 7.4 with Composer 2 | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "7.4" | |
tools: composer:v2 | |
- name: Get Composer Cache Directory | |
id: composer-cache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Use Cache | |
uses: actions/cache@v3.2.4 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Validate Composer Files | |
run: composer validate | |
- name: Install Dependencies | |
run: composer install --no-progress | |
- name: Run phpcs | |
run: composer run-script phpcs |