Fix codecov commands #52
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 of workflow | |
name: PHP CI | |
# Trigger the workflow on push or pull request | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
# The type of machine to run the job on | |
runs-on: ubuntu-latest | |
steps: | |
# Check-out repository under GitHub workspace | |
# https://github.com/actions/checkout | |
- uses: actions/checkout@v3 | |
# 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@v2 | |
with: | |
# Specify the PHP version | |
php-version: '8.2' | |
- name: Install | |
# Install project | |
run: make install | |
- name: Run linter | |
# 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@v5 | |
# Add Code Climate secret key | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
with: | |
coverageCommand: make test-coverage | |
coverageLocations: ${{github.workplace}}/build/logs/clover.xml:clover | |
debug: true |