Skip to content

Commit

Permalink
build: use one common workflow (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored Dec 30, 2023
1 parent 13668be commit 37c1d76
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
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
25 changes: 7 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,20 @@ on:

jobs:
tests:
name: Run tests
uses: monicahq/workflows/.github/workflows/library.yml@main
with:
php-version: ${{ matrix.php-version }}
laravel-version: ${{ matrix.laravel-version }}
coverage: ${{ matrix.php-version == '8.2' && matrix.laravel-version == '10.*' }}

strategy:
fail-fast: false
matrix:
php-version: [8.0, 8.1, 8.2]
laravel-version: [8.*, 9.*, 10.*]
exclude:
- php-version: 8.0
laravel-version: 10.*

reporting:
uses: monicahq/workflows/.github/workflows/reporting.yml@main
with:
php-versions: "['8.0', '8.1', '8.2']"
laravel-versions: "['8.*', '9.*', '10.*']"
default-php-version: '8.2'
default-laravel-version: '10.*'
matrix-exclude: "[{'php-version': '8.0', 'laravel-version': '10.*'}]"
project: monicahq_laravel-sabre
sources: src
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
needs: tests

release:
name: Release
uses: monicahq/workflows/.github/workflows/release.yml@main
secrets:
GH_TOKEN_RELEASE: ${{ secrets.GH_TOKEN_RELEASE }}
Expand Down

0 comments on commit 37c1d76

Please sign in to comment.