Skip to content

Add caching

Add caching #205

Workflow file for this run

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