Mhexlet/php-project-lvl1

View on GitHub
.github/workflows/My-GitHubAction.yml

Summary

Maintainability
Test Coverage
name: My-GitHubActions

on:
  - push

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
        # Check-out repository under GitHub workspace
        # https://github.com/actions/checkout
      - uses: actions/checkout@v2
        # Step's name
      - name: Setup PHP
        # Action gives to setup the PHP environment to test application
        # https://github.com/shivammathur/setup-php
        uses: shivammathur/setup-php@v1
        with:
          # Specify the PHP version
          php-version: '7.4'
      - name: Run install
        run: make install
      - name: Run linter
        run: make lint
        
        # Publish code coverage on Code Climate
        # https://github.com/paambaati/codeclimate-action
      #- name: Run test & publish code coverage
        #uses: paambaati/codeclimate-action@v2.4.0
        # Add Code Climate secret key
        #env:
        #  CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
        #with:
        #  coverageCommand: make test
        #  debug: true