docs: updating project docs #319
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: PR Steps | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
concurrency: | |
group: ${{github.workflows}}-${{github.ref}} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
container: | |
image: php:7.2-apache | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v3 | |
- | |
name: install system packages | |
run: apt-get update && apt-get -y install zip git zlib1g-dev wget | |
- | |
name: Install PHP extensions | |
run: | | |
docker-php-ext-install pdo | |
docker-php-ext-install zip | |
- | |
name: Install Composer | |
run: | | |
php -r "copy('http://getcomposer.org/installer', 'composer-setup.php');" | |
php composer-setup.php --version=1.10.13 | |
- | |
name: Display PHP Information | |
run: | | |
php -v | |
php composer.phar --version | |
- | |
name: Check PHP sintax | |
run: find . -name \*.php -exec php -l "{}" \; | |
- | |
name: Install project dependences | |
run: | |
php composer.phar install | |
sonar: | |
name: Sonar | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Run Sonar | |
uses: sonarsource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |