Skip to content

Commit 14d1881

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 9a32f61 + 7d9ace9 commit 14d1881

130 files changed

Lines changed: 3759 additions & 2609 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ community_bridge: # Replace with a single Community Bridge project-name e.g., cl
99
liberapay: # Replace with a single Liberapay username
1010
issuehunt: # Replace with a single IssueHunt username
1111
otechie: # Replace with a single Otechie username
12-
custom: 'https://bref.sh/#enterprise' # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
12+
custom: 'https://bref.sh/support' # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ contact_links:
33
- name: Community support
44
url: https://github.com/brefphp/bref/discussions?discussions_q=category%3ASupport
55
about: Please ask and answer questions in GitHub Discussions.
6+
- name: Slack community
7+
url: https://bref.sh/slack
8+
about: Ask questions in the `#help` channel.
69
- name: Professional support
7-
url: https://bref.sh/#enterprise
10+
url: https://bref.sh/support
811
about: Get in touch with Null, the company behind Bref.
912
- name: Sponsor a feature
10-
url: https://bref.sh/#enterprise
13+
url: https://bref.sh/support
1114
about: Sponsor the development of a new feature you want to see in Bref.

.github/aws/github-role.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ Resources:
1515
- Effect: Allow
1616
Action: sts:AssumeRoleWithWebIdentity
1717
Principal:
18-
Federated: arn:aws:iam::534081306603:oidc-provider/token.actions.githubusercontent.com
18+
Federated: arn:aws:iam::873528684822:oidc-provider/token.actions.githubusercontent.com
1919
Condition:
2020
StringLike:
2121
token.actions.githubusercontent.com:sub: !Sub repo:${FullRepoName}:*
2222
Policies:
23-
- PolicyName: RetrieveLayersForLayerJsRole
23+
- PolicyName: RetrieveLayersForLayerRole
2424
PolicyDocument:
2525
Statement:
2626
- Effect: Allow

.github/workflows/ci.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
on:
44
push:
5-
branches: ['master']
5+
branches: ['master', '2.x']
66
pull_request:
77
branches: ['*']
88
schedule:
@@ -16,22 +16,22 @@ jobs:
1616
timeout-minutes: 15
1717
strategy:
1818
matrix:
19-
php: [ '8.4', '8.3', '8.2', '8.1', '8.0' ]
19+
php: [ '8.5', '8.4', '8.3', '8.2' ]
2020
dependency-version: [ '' ]
2121
platform-reqs: [ '' ]
2222
include:
23-
- php: '8.0'
23+
- php: '8.2'
2424
dependency-version: '--prefer-lowest'
2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v6
2828
# Node is required by some tests
29-
- uses: actions/setup-node@v3
29+
- uses: actions/setup-node@v6
3030
with:
31-
node-version: 18
31+
node-version: 22
3232
# serverless is required by some tests
3333
- name: Install serverless
34-
run: npm i -g serverless@3
34+
run: npm i -g osls
3535
- name: Setup PHP
3636
uses: shivammathur/setup-php@v2
3737
with:
@@ -49,15 +49,15 @@ jobs:
4949
name: PHPStan
5050
steps:
5151
- name: Checkout
52-
uses: actions/checkout@v4
52+
uses: actions/checkout@v6
5353
- name: Setup PHP
5454
uses: shivammathur/setup-php@v2
5555
with:
5656
php-version: '8.3'
5757
tools: composer:v2, cs2pr
5858
coverage: none
5959
- name: Cache Composer dependencies
60-
uses: actions/cache@v3
60+
uses: actions/cache@v5
6161
with:
6262
path: ~/.composer/cache
6363
key: php-composer-locked-${{ hashFiles('composer.lock') }}
@@ -72,15 +72,15 @@ jobs:
7272
name: PHP CodeSniffer
7373
steps:
7474
- name: Checkout
75-
uses: actions/checkout@v4
75+
uses: actions/checkout@v6
7676
- name: Setup PHP
7777
uses: shivammathur/setup-php@v2
7878
with:
7979
php-version: '8.3'
8080
tools: composer:v2, cs2pr
8181
coverage: none
8282
- name: Cache Composer dependencies
83-
uses: actions/cache@v3
83+
uses: actions/cache@v5
8484
with:
8585
path: ~/.composer/cache
8686
key: php-composer-locked-${{ hashFiles('composer.lock') }}
@@ -94,11 +94,11 @@ jobs:
9494
runs-on: ubuntu-22.04
9595
name: JS type validation and linting
9696
steps:
97-
- uses: actions/checkout@v4
98-
- uses: actions/setup-node@v3
97+
- uses: actions/checkout@v6
98+
- uses: actions/setup-node@v6
9999
with:
100-
node-version: 18
101-
- uses: actions/cache@v3
100+
node-version: 22
101+
- uses: actions/cache@v5
102102
with:
103103
path: ~/.npm
104104
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}

.github/workflows/update-layer-versions.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1-
name: Update layer versions (Bref v2)
1+
name: Update layer versions
22

33
# Triggered manually or automatically when new Bref layers published
44
on:
55
workflow_dispatch:
66
inputs:
77
release_url:
88
type: string
9+
description: The URL of the GitHub release that triggered this workflow
910
release_html_url:
1011
type: string
12+
description: The URL of the GitHub release that triggered this workflow
1113
release_name:
1214
type: string
15+
description: The name of the GitHub release that triggered this workflow
1316

1417
# Necessary to connect to AWS using OIDC
1518
# https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services
@@ -24,14 +27,14 @@ jobs:
2427
name: Update layer versions
2528
runs-on: ubuntu-22.04
2629
steps:
27-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@v6
2831
with:
2932
ref: master
3033

3134
- name: Set AWS credentials
3235
uses: aws-actions/configure-aws-credentials@v4
3336
with:
34-
role-to-assume: arn:aws:iam::534081306603:role/bref-github-actions
37+
role-to-assume: arn:aws:iam::873528684822:role/bref-github-actions
3538
role-session-name: bref-github-actions
3639
aws-region: us-east-1
3740

@@ -40,17 +43,17 @@ jobs:
4043
with:
4144
php-version: '8.3'
4245
tools: composer
46+
coverage: none
4347

44-
- name: Install Composer dependencies
45-
run: composer install --prefer-dist
48+
- run: composer install --prefer-dist
4649

4750
- run: make layers.json
4851

4952
- name: Create Pull Request
50-
uses: peter-evans/create-pull-request@v5
53+
uses: peter-evans/create-pull-request@v7
5154
with:
5255
commit-message: Update layer versions
53-
title: Update Lambda layers [${{ inputs.release_name }}](${{ inputs.release_html_url }})
56+
title: Update v3 layers [${{ inputs.release_name }}](${{ inputs.release_html_url }})
5457
body: |
5558
New AWS Lambda layers [have been released](https://github.com/brefphp/aws-lambda-layers/releases):
5659
@@ -60,7 +63,8 @@ jobs:
6063
After merging, a new Bref release needs to be created.
6164
6265
If you are using AWS Lambda layer ARNs, check out [runtimes.bref.sh](https://runtimes.bref.sh/) to see the latest ARNs.
63-
branch: new-layer-versions
66+
branch: new-layer-versions-v3
67+
base: master
6468
delete-branch: true # delete after merging or closing the PR
6569
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
6670
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

.github/workflows/website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
name: prod
2323
url: https://bref.sh
2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v6
2626
with:
2727
fetch-depth: 0 # fetch all history for "latest modified time"
2828
- run: npm install --global vercel@latest

.gitignore

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
/vendor
22
/.idea
3-
/tests/Bridge/Symfony/var
4-
/tests/Bridge/Symfony/cache
5-
/tests/Bridge/Symfony/logs
63
/.bref/
74
/.phpcs-cache
85
/composer.lock
9-
/.couscous/
106
/website/node_modules/
11-
/website/template/output.css
12-
/.netlify/
137
.DS_Store
148
/.serverless/
15-
.phpunit.result.cache
9+
.phpunit.cache
1610
node_modules/
1711
package-lock.json
12+
/.claude
13+
/.playwright-mcp

.phpcs.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<!-- Show sniff names -->
88
<arg value="s"/>
99

10-
<file>bref</file>
1110
<file>src</file>
1211
<file>tests</file>
1312

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2022 Matthieu Napoli
3+
Copyright (c) 2025 Matthieu Napoli
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
.EXPORT_ALL_VARIABLES:
22

3-
trigger_runtimes:
4-
aws codepipeline start-pipeline-execution --name bref-php-binary
5-
6-
runtime_build_status:
7-
aws codepipeline get-pipeline-state --name=bref-php-binary | jq ".stageStates[1].latestExecution.status"
8-
93
layers.json:
104
php utils/layers.json/update.php
115

@@ -15,4 +9,4 @@ test-stack:
159
preview:
1610
cd website && make preview
1711

18-
.PHONY: demo layers.json test-stack
12+
.PHONY: layers.json test-stack

0 commit comments

Comments
 (0)