RoussKS / financial-year

A PHP library to handle different financial year date requirements
MIT License
8 stars 0 forks source link

Add Code Coverage report & badge via Github Actions #13

Open RoussKS opened 1 year ago

RoussKS commented 1 year ago

In TravisCI the automation was creating a clover file for code coverage and a badge as well. travis.yml code below for reference

language: php

sudo: false

cache:
  directories:
  - $HOME/.composer/cache/files

php:
  - '7.1'
  - '7.2'
  - '7.3'

before_install:
  - travis_retry composer self-update
  - travis_retry composer install --no-interaction

script:
  - vendor/bin/phpunit --coverage-clover=coverage.xml

after_success:
  - bash <(curl -s https://codecov.io/bash)
RoussKS commented 10 months ago

This will be implemented with version 2 of the library, as it will reduce complexity of the required phpunit versions and their different setups.