Merge pull request #11 from nuxtifyts/refactor/exceptions-usage #12
This file contains hidden or 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: PhpUnit Coverage Percentage Badge | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[ci]')" | |
strategy: | |
matrix: | |
operating-system: [ubuntu-latest] | |
php-versions: [ '8.4' ] | |
name: P${{ matrix.php-versions }} - L${{ matrix.laravel }} - ${{ matrix.operating-system}} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.NUXTIFYTS_BOT_API_KEY }} | |
- name: Setup Git | |
run: | | |
git config --global user.name "nuxtifyts-bot" | |
git config --global user.email "nuxtifyts@gmail.com" | |
- name: Install PHP versions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
coverage: xdebug | |
extensions: dom, json, libxml, mbstring, xml, xmlwriter, openssl | |
- name: Install Dependencies | |
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | |
- name: Show dir | |
run: pwd | |
- name: PHP Version | |
run: php --version | |
- name: Run PhpUnit | |
run: composer run-script ci-test | |
- name: Generate test coverage badge | |
uses: timkrase/phpunit-coverage-badge@v1.2.1 | |
with: | |
coverage_badge_path: 'badge-coverage.svg' | |
push_badge: true | |
repo_token: ${{ secrets.GITHUB_TOKEN }} |