name: Static Code Analysis

on:
  push:
    paths-ignore:
      - '**.md'
      - '**.txt'
  pull_request:
    branches:
      - master
      - develoment

jobs:
  analysis:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout Code
        uses: actions/checkout@v2
        with:
          fetch-depth: 1

      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: '7.3'
          coverage: none
          tools: php-cs-fixer, phpcs

      - name: Run PHP_CodeSniffer
        run: |
          phpcs --version
          phpcs --runtime-set ignore_warnings_on_exit true

      - name: Run PHP CS Fixer
        if: always()
        run: |
          php-cs-fixer --version
          php-cs-fixer fix --diff --dry-run -v

      - name: Run Shell Check
        if: always()
        run: shellcheck .ci/*.sh

name: Static Code Analysis

on:
  push:
    paths-ignore:
      - '**.md'
      - '**.txt'
  pull_request:
    branches:
      - master
      - develoment

jobs:
  analysis:
    runs-on: ubuntu-18.04

    steps:
      - name: Checkout Code
        uses: actions/checkout@v2
        with:
          fetch-depth: 1

      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: '7.3'
          coverage: none
          tools: php-cs-fixer, phpcs

      - name: Run PHP_CodeSniffer
        run: |
          phpcs --version
          phpcs --runtime-set ignore_warnings_on_exit true

      - name: Run PHP CS Fixer
        if: always()
        run: |
          php-cs-fixer --version
          php-cs-fixer fix --diff --dry-run -v

      - name: Run Shell Check
        if: always()
        run: shellcheck .ci/*.sh

Use ubuntu 18.04 instead of latest
Use ubuntu 18.04 instead of latest

