Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/sample-workflows/analyse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: ["push", "pull_request"]

jobs:
test:
uses: rapidez/workflows/.github/workflows/analyse.yml
uses: rapidez/workflows/.github/workflows/analyse.yml@master
strategy:
fail-fast: true
matrix:
Expand All @@ -17,9 +17,9 @@ jobs:
testbench: 10.*
- laravel: 13.*
testbench: 11.*
with:
os: ${{ matrix.os }}
php: ${{ matrix.php }}
laravel: ${{ matrix.laravel }}
testbench: ${{ matrix.testbench }}
stability: ${{ matrix.stability }}
with:
os: ${{ matrix.os }}
php: ${{ matrix.php }}
laravel: ${{ matrix.laravel }}
testbench: ${{ matrix.testbench }}
stability: ${{ matrix.stability }}
16 changes: 16 additions & 0 deletions .github/sample-workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Update Changelog"

on:
workflow_dispatch:
release:
types: [ published, edited, deleted ]

jobs:
generate:
uses: rapidez/workflows/.github/workflows/changelog.yml@master
with:
repository: ${{ github.repository }}
branch: ${{ github.event.release.target_commitish }}
ref: ${{ github.head_ref || github.ref_name }}
token: ${{ secrets.RAPIDEZ_ACTIONS_ACCOUNT_PAT }}
github-token: ${{ secrets.GITHUB_TOKEN }}
14 changes: 7 additions & 7 deletions .github/sample-workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: ["push", "pull_request"]

jobs:
test:
uses: rapidez/workflows/.github/workflows/coverage.yml
uses: rapidez/workflows/.github/workflows/coverage.yml@master
strategy:
fail-fast: true
matrix:
Expand All @@ -17,9 +17,9 @@ jobs:
testbench: 10.*
- laravel: 13.*
testbench: 11.*
with:
os: ${{ matrix.os }}
php: ${{ matrix.php }}
laravel: ${{ matrix.laravel }}
testbench: ${{ matrix.testbench }}
stability: ${{ matrix.stability }}
with:
os: ${{ matrix.os }}
php: ${{ matrix.php }}
laravel: ${{ matrix.laravel }}
testbench: ${{ matrix.testbench }}
stability: ${{ matrix.stability }}
14 changes: 14 additions & 0 deletions .github/sample-workflows/duster-fix-blame.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Duster

# Commits made in here will not trigger any workflows
# Checkout Duster's documentation for a workaround

on:
push:

jobs:
duster:
uses: rapidez/workflows/.github/workflows/duster-fix-blame.yml@master
with:
ref: ${{ github.head_ref }}
repo-token: ${{ secrets.RAPIDEZ_ACTIONS_ACCOUNT_PAT }}
4 changes: 3 additions & 1 deletion .github/sample-workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ on: ["push", "pull_request"]

jobs:
test:
uses: rapidez/workflows/.github/workflows/prettier.yml
uses: rapidez/workflows/.github/workflows/prettier.yml@master
with:
os: ${{ matrix.os }}
2 changes: 1 addition & 1 deletion .github/sample-workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ on: ["push", "pull_request"]

jobs:
test:
uses: rapidez/workflows/.github/workflows/style.yml
uses: rapidez/workflows/.github/workflows/style.yml@master
14 changes: 7 additions & 7 deletions .github/sample-workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: ["push", "pull_request"]

jobs:
test:
uses: rapidez/workflows/.github/workflows/tests.yml
uses: rapidez/workflows/.github/workflows/tests.yml@master
strategy:
fail-fast: true
matrix:
Expand All @@ -17,9 +17,9 @@ jobs:
testbench: 10.*
- laravel: 13.*
testbench: 11.*
with:
os: ${{ matrix.os }}
php: ${{ matrix.php }}
laravel: ${{ matrix.laravel }}
testbench: ${{ matrix.testbench }}
stability: ${{ matrix.stability }}
with:
os: ${{ matrix.os }}
php: ${{ matrix.php }}
laravel: ${{ matrix.laravel }}
testbench: ${{ matrix.testbench }}
stability: ${{ matrix.stability }}
12 changes: 12 additions & 0 deletions .github/sample-workflows/translations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Check translations

on:
push:
branches:
- master
- '*.x'
pull_request:

jobs:
translations:
uses: rapidez/workflows/.github/workflows/translations.yml@master
50 changes: 50 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: "Update Changelog"

on:
workflow_call:
inputs:
repository:
required: true
type: string
branch:
required: true
type: string
ref:
required: true
type: string
token:
required: true
type: string
github-token:
required: true
type: string
os:
required: false
type: string
default: ubuntu-latest

jobs:
generate:
runs-on: ${{ inputs.os }}

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ inputs.branch }}
token: ${{ inputs.token }}

- name: Generate changelog
uses: justbetter/generate-changelogs-action@main
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
with:
repository: ${{ inputs.repository }}
sha: ${{ inputs.ref }}

- name: Commit CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: ${{ inputs.branch }}
commit_message: Update CHANGELOG
file_pattern: CHANGELOG.md
43 changes: 43 additions & 0 deletions .github/workflows/duster-fix-blame.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Duster

# Commits made in here will not trigger any workflows
# Checkout Duster's documentation for a workaround

on:
workflow_call:
inputs:
ref:
required: true
type: string
repo-token:
required: true
type: string
os:
required: false
type: string
default: ubuntu-latest

jobs:
duster:
runs-on: ${{ inputs.os }}

permissions:
contents: write

steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.ref }}
token: ${{ inputs.repo-token }}

- name: "Duster Fix"
uses: tighten/duster-action@v2
with:
args: fix -vvv

- uses: stefanzweifel/git-auto-commit-action@v4
id: auto_commit_action
with:
commit_message: Apply fixes from Duster
commit_user_name: GitHub Action
commit_user_email: actions@github.com
33 changes: 33 additions & 0 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Check translations

on:
workflow_call:
inputs:
os:
required: false
type: string
default: ubuntu-latest
php:
required: false
type: number
default: 8.5

jobs:
translations:
runs-on: ${{ inputs.os }}

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ inputs.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none

- name: Install dependencies
run: composer install --prefer-dist --no-interaction

- name: Check translations
uses: rapidez/laravel-translation-checker@master