Skip to content

Commit

Permalink
build: use one common workflow (#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored Dec 30, 2023
1 parent 55caf24 commit d80fdb3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,23 @@ on:
release:
types: [created]


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: version

strategy:
fail-fast: false
matrix:
php-version: ['8.2']
connection: [sqlite, mysql]

reporting:
uses: monicahq/workflows/.github/workflows/reporting.yml@main
with:
php-versions: "['8.2']"
connections: "['sqlite', 'mysql']"
default-php-version: '8.2'
default-connection: sqlite
project: monicahq_version
database_name: version
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
needs: tests

assets:
name: Build assets
uses: monicahq/workflows/.github/workflows/build_assets.yml@main
with:
node-version: 18
1 change: 1 addition & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

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

0 comments on commit d80fdb3

Please sign in to comment.