Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/actions/composer-dependency-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ runs:
steps:
- name: Cache dependencies
id: cache-composer
uses: actions/cache@v4
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb #5.0.1
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock', 'app-modules/**/composer.lock') }}
Expand Down
44 changes: 20 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,30 @@ jobs:
steps:
- name: Checkout code | Internal
if: ${{ github.event_name == 'merge_group' || github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
uses: actions/checkout@v4
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #6.0.1
with:
token: ${{ secrets.pat-token }}

- name: Checkout code | External
if: ${{ github.event_name != 'merge_group' && github.event.pull_request.head.repo.full_name != github.repository || github.actor == 'dependabot[bot]' }}
uses: actions/checkout@v4
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #6.0.1

- name: Set up Ruby
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@d697be2f83c6234b20877c3b5eac7a7f342f0d0c #1.269.0

- name: Run Ruby Script
run: ruby ./copyright.rb

- name: Commit changes
if: ${{ github.event_name != 'merge_group' && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
# SHA of release v5.0.1
uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3
uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 #7.0.0
with:
commit_message: >
chore: fix enforcement of copyright on all files

- name: Check for changes
if: ${{ github.event_name == 'merge_group' || github.event.pull_request.head.repo.full_name != github.repository || github.actor == 'dependabot[bot]' }}
# SHA of release v20.0.1
uses: tj-actions/verify-changed-files@a1c6acee9df209257a246f2cc6ae8cb6581c1edf
uses: tj-actions/verify-changed-files@a1c6acee9df209257a246f2cc6ae8cb6581c1edf #20.0.4
with:
fail-if-changed: 'true'

Expand All @@ -53,40 +51,40 @@ jobs:
needs: [enforce-copyright]

steps:
- uses: shivammathur/setup-php@v2
- uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 #2.36.0
with:
php-version: '8.4'
coverage: none

- name: Checkout code | Internal
if: ${{ github.event_name == 'merge_group' || github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
uses: actions/checkout@v4
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #6.0.1
with:
token: ${{ secrets.pat-token }}

- name: Checkout code | External
if: ${{ github.event_name != 'merge_group' && github.event.pull_request.head.repo.full_name != github.repository || github.actor == 'dependabot[bot]' }}
uses: actions/checkout@v4
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #6.0.1

- name: Setup Dependencies
uses: ./.github/actions/composer-dependency-setup

- uses: actions/setup-node@v6
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f #6.1.0
with:
node-version-file: '.nvmrc'
cache: 'npm'
- run: npm install

- name: Cache PHP CS Fixer
uses: actions/cache@v5
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb #5.0.1
with:
path: .php-cs-fixer.cache
key: ${{ runner.OS }}-${{ github.repository }}-phpcsfixer-${{ github.run_id }}
restore-keys: |
${{ runner.OS }}-${{ github.repository }}-phpcsfixer-

- name: Cache Prettier
uses: actions/cache@v5
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb #5.0.1
with:
path: ./node_modules/.cache/prettier/.prettier-cache
key: ${{ runner.OS }}-${{ github.repository }}-prettier-${{ github.run_id }}
Expand All @@ -98,16 +96,14 @@ jobs:

- name: Commit changes
if: ${{ github.event_name != 'merge_group' && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
# SHA of release v5.0.1
uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3
uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 #7.0.0
with:
commit_message: >
chore: fix code style

- name: Check for changes
if: ${{ github.event_name == 'merge_group' || github.event.pull_request.head.repo.full_name != github.repository || github.actor == 'dependabot[bot]' }}
# SHA of release v20.0.1
uses: tj-actions/verify-changed-files@a1c6acee9df209257a246f2cc6ae8cb6581c1edf
uses: tj-actions/verify-changed-files@a1c6acee9df209257a246f2cc6ae8cb6581c1edf #20.0.4
with:
fail-if-changed: 'true'

Expand All @@ -119,13 +115,13 @@ jobs:
needs: [enforce-copyright, fix-code-style]

steps:
- uses: shivammathur/setup-php@v2
- uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 #2.36.0
with:
php-version: '8.4'
coverage: none
extensions: gd, gmp, redis

- uses: actions/checkout@v4
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #6.0.1
with:
fetch-depth: 0
fetch-tags: true
Expand All @@ -134,7 +130,7 @@ jobs:
uses: ./.github/actions/composer-dependency-setup

- name: 'Restore result cache'
uses: actions/cache/restore@v5
uses: actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb #5.0.1
with:
path: tmp
key: 'phpstan-result-cache-${{ github.run_id }}'
Expand All @@ -145,7 +141,7 @@ jobs:
run: ./vendor/bin/phpstan analyse --configuration phpstan-ci.neon --no-progress

- name: 'Save result cache'
uses: actions/cache/save@v5
uses: actions/cache/save@9255dc7a253b0ccc959486e2bca901246202afeb #5.0.1
if: ${{ !cancelled() }}
with:
path: tmp
Expand All @@ -159,21 +155,21 @@ jobs:
needs: [enforce-copyright, fix-code-style]

steps:
- uses: shivammathur/setup-php@v2
- uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 #2.36.0
with:
php-version: '8.4'
coverage: none
extensions: gd, gmp, redis, mailparse

- uses: actions/checkout@v4
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #6.0.1
with:
fetch-depth: 0
fetch-tags: true

- name: Setup Dependencies
uses: ./.github/actions/composer-dependency-setup

- uses: actions/setup-node@v6
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f #6.1.0
with:
node-version-file: '.nvmrc'
cache: 'npm'
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/update_yearly_copyright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,18 @@ jobs:

steps:
- name: Checkout `main` Branch
uses: actions/checkout@v4
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #6.0.1
with:
token: ${{ secrets.PAT }}

- name: Set up Ruby
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@d697be2f83c6234b20877c3b5eac7a7f342f0d0c #1.269.0

- name: Run copyright script
run: ruby ./copyright.rb

- name: Create Pull Request
# SHA of release v6.1.0
uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725
uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 #8.0.0
with:
token: ${{ secrets.PAT }}
commit-message: >
Expand Down
Loading