Add caching #202
Workflow file for this run
This file contains 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: Unit Tests | |
on: | |
push: | |
branches: [ "main" ] | |
merge_group: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
tests: | |
name: Run Unit Tests | |
runs-on: self-hosted | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
env: | |
runner: self-hosted | |
with: | |
coverage: xdebug | |
tools: composer | |
php-version: '8.3' | |
extensions: mbstring xdebug | |
- name: Install Dependencies | |
run: composer install --optimize-autoloader --no-plugins | |
- name: Create attributes file | |
run: composer dump | |
- name: Run Unit Tests | |
run: vendor/bin/pest --coverage-clover coverage.xml --ci | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 |