Skip to content

Commit 07953ff

Browse files
authored
Merge pull request #313 from spatie/workflows
Workflows
2 parents 74eed02 + 6338b71 commit 07953ff

File tree

6 files changed

+17
-8
lines changed

6 files changed

+17
-8
lines changed

.github/workflows/dependabot-auto-merge.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,23 @@ permissions:
88
jobs:
99
dependabot:
1010
runs-on: ubuntu-latest
11+
timeout-minutes: 5
1112
if: ${{ github.actor == 'dependabot[bot]' }}
1213
steps:
13-
14+
1415
- name: Dependabot metadata
1516
id: metadata
1617
uses: dependabot/[email protected]
1718
with:
1819
github-token: "${{ secrets.GITHUB_TOKEN }}"
19-
20+
2021
- name: Auto-merge Dependabot PRs for semver-minor updates
2122
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
2223
run: gh pr merge --auto --merge "$PR_URL"
2324
env:
2425
PR_URL: ${{github.event.pull_request.html_url}}
2526
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
26-
27+
2728
- name: Auto-merge Dependabot PRs for semver-patch updates
2829
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
2930
run: gh pr merge --auto --merge "$PR_URL"

.github/workflows/fix-php-code-style-issues.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ permissions:
1111
jobs:
1212
php-code-styling:
1313
runs-on: ubuntu-latest
14+
timeout-minutes: 5
1415

1516
steps:
1617
- name: Checkout code

.github/workflows/phpstan.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ on:
55
paths:
66
- '**.php'
77
- 'phpstan.neon.dist'
8+
- '.github/workflows/phpstan.yml'
89

910
jobs:
1011
phpstan:
1112
name: phpstan
1213
runs-on: ubuntu-latest
14+
timeout-minutes: 5
1315
steps:
1416
- uses: actions/checkout@v4
1517

.github/workflows/run-tests.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,22 @@ name: run-tests
22

33
on:
44
push:
5-
branches: [main]
6-
pull_request:
7-
branches: [main]
5+
paths:
6+
- '**.php'
7+
- '.github/workflows/run-tests.yml'
8+
- 'phpunit.xml.dist'
9+
- 'composer.json'
10+
- 'composer.lock'
811

912
jobs:
1013
test:
1114
runs-on: ${{ matrix.os }}
15+
timeout-minutes: 5
1216
strategy:
1317
fail-fast: true
1418
matrix:
1519
os: [ubuntu-latest, windows-latest]
16-
php: [8.2, 8.1]
20+
php: [8.3, 8.2, 8.1]
1721
laravel: [10.*]
1822
stability: [prefer-lowest, prefer-stable]
1923
include:

.github/workflows/update-changelog.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ permissions:
1010
jobs:
1111
update:
1212
runs-on: ubuntu-latest
13+
timeout-minutes: 5
1314

1415
steps:
1516
- name: Checkout code

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ includes:
22
- phpstan-baseline.neon
33

44
parameters:
5-
level: 4
5+
level: 5
66
paths:
77
- src
88
- config

0 commit comments

Comments
 (0)