Skip to content

Commit

Permalink
build: use one common workflow (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored Dec 30, 2023
1 parent 17ca1c7 commit 7374ebe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,14 @@ concurrency:

jobs:
tests:
name: Run 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:
php-versions: "['8.2']"
connections: "['sqlite', 'mysql', 'pgsql']"
default-php-version: '8.2'
default-connection: sqlite
project: monicahq_customers
database_name: customers
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
needs: tests
1 change: 1 addition & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ concurrency:

jobs:
statics:
name: Static analysis
uses: monicahq/workflows/.github/workflows/static.yml@main
with:
php-version: 8.2

0 comments on commit 7374ebe

Please sign in to comment.