Skip to content

chore: Update GitHub workflow to use composer for dependency manageme… #61

chore: Update GitHub workflow to use composer for dependency manageme…

chore: Update GitHub workflow to use composer for dependency manageme… #61

Workflow file for this run

name: Codecov
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install scout-seeker
run: cargo install scout-seeker
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
extensions: fileinfo
coverage: pcov
- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: composer update --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/pest --coverage
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}