Skip to content

Commit

Permalink
chore(github): seperated codecov and test actions
Browse files Browse the repository at this point in the history
Signed-off-by: Fred Myerscough <oniice@gmail.com>
  • Loading branch information
oniice committed Sep 15, 2024
1 parent 56511b6 commit 3080617
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 8 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Code Coverage

on:
schedule:
- cron: "0 0 * * *"
push:
branches: [ main ]

jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
php-versions: [ 8.3 ]

name: PHP ${{ matrix.php-versions }} - ${{ matrix.os }}
steps:

- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug
extensions: intl, fileinfo

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction

- name: Run Test Suite
run: vendor/bin/phpunit --testdox --coverage-clover ./coverage.xml

- name: Code Coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
verbose: true
9 changes: 1 addition & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,4 @@ jobs:
run: composer install --prefer-dist --no-progress --no-interaction

- name: Run Test Suite
run: vendor/bin/phpunit --testdox --coverage-clover ./coverage.xml

- name: Code Coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
verbose: true
run: composer run test

0 comments on commit 3080617

Please sign in to comment.