This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
Update the CHANGELOG #30
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: Lint and analyse files | |
permissions: | |
contents: read | |
on: [push] | |
jobs: | |
lint-php: | |
name: Lint file | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use php 7.2 | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.2 | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Cache module | |
uses: actions/cache@v3 | |
with: | |
path: ~/.composer/cache/ | |
key: composer-cache | |
- name: Install dependencies | |
run: composer install --no-interaction | |
- name: Lint files | |
run: composer run phpcs | |
analyse-php: | |
name: Analyse files | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use php 7.4 | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.4 | |
- name: Cache module | |
uses: actions/cache@v3 | |
with: | |
path: ~/.composer/cache/ | |
key: composer-cache | |
- name: Install dependencies | |
run: composer install --no-interaction | |
- name: Analyse files | |
run: composer run phpstan |