Skip to content

internal(other): Pre-Alpha M1 #140

internal(other): Pre-Alpha M1

internal(other): Pre-Alpha M1 #140

Workflow file for this run

name: Code Coverage
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@2.31.1
with:
php-version: '8.3'
extensions: mbstring
tools: phpunit:11.4
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Run PHPUnit and collect coverage
run: phpunit --log-junit junit.xml --coverage-clover coverage.xml .
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}