Skip to content

Commit

Permalink
Merge pull request #94 from spatie/workflows
Browse files Browse the repository at this point in the history
Workflows
  • Loading branch information
Nielsvanpach committed Dec 18, 2023
2 parents 1e82806 + 6dd7bb6 commit f313d1c
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ permissions:
jobs:
dependabot:
runs-on: ubuntu-latest
timeout-minutes: 5
if: ${{ github.actor == 'dependabot[bot]' }}
steps:

- name: Dependabot metadata
id: metadata
uses: dependabot/[email protected]
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Auto-merge Dependabot PRs for semver-minor/patch updates
if: ${{steps.metadata.outputs.update-type != 'version-update:semver-major'}}
run: gh pr merge --auto --merge "$PR_URL"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/fix-php-code-style-issues-cs-fixer.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
name: Check & fix styling

on: [push]
on:
push:
paths:
- '**.php'

permissions:
contents: write

jobs:
php-cs-fixer:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Checkout code
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/fix-php-code-style-issues-pint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ permissions:
jobs:
php-code-styling:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Checkout code
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/run-tests-pest.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
name: Tests

on: [push, pull_request]
on:
push:
paths:
- '**.php'
- '.github/workflows/run-tests-pest.yml'
- 'phpunit.xml.dist'
- 'composer.json'
- 'composer.lock'

jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 5
strategy:
fail-fast: true
matrix:
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/run-tests-phpunit.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
name: Tests

on: [push, pull_request]
on:
push:
paths:
- '**.php'
- '.github/workflows/run-tests-phpunit.yml'
- 'phpunit.xml.dist'
- 'composer.json'
- 'composer.lock'

jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 5
strategy:
fail-fast: true
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ permissions:
jobs:
update:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Checkout code
Expand Down

0 comments on commit f313d1c

Please sign in to comment.