Skip to content

build: reuse workflows (#477) #837

build: reuse workflows (#477)

build: reuse workflows (#477) #837

Workflow file for this run

name: Build and test
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
release:
types: [created]
env:
default-php-version: '8.2'
coverage-with: 'sqlite'
concurrency:
group: Build ${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
uses: monicahq/workflows/.github/workflows/laravel.yml@main
with:
php-version: ${{ matrix.php-version }}
connection: ${{ matrix.connection }}
coverage: ${{ matrix.connection == 'sqlite' && matrix.php-version == '8.2' }}
database_name: customers
strategy:
fail-fast: false
matrix:
php-version: ['8.2']
connection: [sqlite, mysql, pgsql]
reporting:
uses: monicahq/workflows/.github/workflows/reporting.yml@main
with:
project: monicahq_customers
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
needs: tests