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
5 changes: 5 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
self-hosted-runner:
# Blacksmith runner labels are custom labels actionlint does not know about.
labels:
- blacksmith-2vcpu-ubuntu-2404
- blacksmith-4vcpu-ubuntu-2404
6 changes: 5 additions & 1 deletion .github/actions/setup-php-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ runs:
tools: ${{ inputs.tools }}
php-version: ${{ inputs.php-version }}
ini-values: ${{ inputs.ini-values }}
extensions: ${{ inputs.extensions }}
# The runner image ships ext-redis 5.3.7 pre-installed, which conflicts with
# symfony/cache (requires ext-redis >= 6.1) and breaks `composer install`.
# Pin a compatible phpredis (>= 6.1, and new enough to build on PHP 8.5) so the
# extension stays available for the redis cache tests instead of being dropped.
extensions: "${{ inputs.extensions }}, redis-6.3.0"
coverage: ${{ inputs.coverage != '' && inputs.coverage || null }}
env: ${{ inputs.php-env != '' && fromJSON(inputs.php-env) || fromJSON('{}') }}

Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/baseline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ permissions:

jobs:
build-archives:
runs-on: ubuntu-latest
runs-on: blacksmith-2vcpu-ubuntu-2404
permissions:
contents: read
packages: write
Expand Down Expand Up @@ -58,8 +58,8 @@ jobs:
run: |
./build/flow.phar --version

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4
- name: Setup Blacksmith Builder
uses: useblacksmith/setup-docker-builder@6ff44f8e5255f9d8aa31ef22f7e57a2d926b7da0 # v1.11.0

- name: Set up QEMU
uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
Expand All @@ -72,7 +72,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Docker Image
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7
uses: useblacksmith/build-push-action@fb9e3e6a9299c78462bfadd0d93352c316adc9b8 # v2.2.0
with:
context: .
file: ./Dockerfile
Expand All @@ -81,8 +81,6 @@ jobs:
tags: |
ghcr.io/flow-php/flow:latest
target: flow
cache-from: type=gha
cache-to: type=gha,mode=max

- name: "Prepare artifact name"
if: ${{ github.event_name == 'push' }}
Expand All @@ -98,7 +96,7 @@ jobs:
overwrite: true

publish-website:
runs-on: ubuntu-latest
runs-on: blacksmith-2vcpu-ubuntu-2404
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/commit-authorship.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions:
# Code borrowed from: https://github.com/carthage-software/mago/blob/main/.github/workflows/commit-authorship.yml
jobs:
check-commit-authorship:
runs-on: "ubuntu-latest"
runs-on: "blacksmith-2vcpu-ubuntu-2404"
steps:
- name: "Checkout"
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ permissions:

jobs:
dependabot:
runs-on: ubuntu-latest
runs-on: blacksmith-2vcpu-ubuntu-2404
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ permissions:

jobs:
documentation-linter:
runs-on: "ubuntu-latest"
runs-on: "blacksmith-2vcpu-ubuntu-2404"
steps:
- name: "Checkout"
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/job-arrow-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest']
os: ['blacksmith-2vcpu-ubuntu-2404', 'macos-latest']
php: ['8.3', '8.4', '8.5']

steps:
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest']
os: ['blacksmith-2vcpu-ubuntu-2404', 'macos-latest']

steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/job-extension-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- "8.4"
- "8.5"
operating-system:
- "ubuntu-latest"
- "blacksmith-2vcpu-ubuntu-2404"

steps:
- name: "Checkout"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/job-flow-php-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest']
os: ['blacksmith-2vcpu-ubuntu-2404', 'macos-latest']
php: ['8.3', '8.4', '8.5']

steps:
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest']
os: ['blacksmith-2vcpu-ubuntu-2404', 'macos-latest']

steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/job-mutation-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
php-version:
- "8.3"
operating-system:
- "ubuntu-latest"
- "blacksmith-4vcpu-ubuntu-2404"

steps:
- name: "Checkout"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/job-pg-query-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest']
os: ['blacksmith-2vcpu-ubuntu-2404', 'macos-latest']
php: ['8.3', '8.4', '8.5']

steps:
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest']
os: ['blacksmith-2vcpu-ubuntu-2404', 'macos-latest']

steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/job-phpunit-telemetry-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:

jobs:
tests:
runs-on: ubuntu-latest
runs-on: blacksmith-2vcpu-ubuntu-2404
timeout-minutes: 15
services:
postgres:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/job-static-analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
php-version:
- "8.3"
operating-system:
- "ubuntu-latest"
- "blacksmith-2vcpu-ubuntu-2404"

steps:
- name: "Checkout"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/job-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- "8.4"
- "8.5"
operating-system:
- "ubuntu-latest"
- "blacksmith-4vcpu-ubuntu-2404"

steps:
- name: "Checkout"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/monorepo-split.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:

jobs:
packages_split:
runs-on: ubuntu-latest
runs-on: blacksmith-2vcpu-ubuntu-2404

strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
automation_github_token: "${{ secrets.GITHUB_TOKEN }}"

pull-request-size:
runs-on: ubuntu-latest
runs-on: blacksmith-2vcpu-ubuntu-2404
continue-on-error: true
permissions:
pull-requests: write
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
php-version:
- "8.3"
operating-system:
- "ubuntu-latest"
- "blacksmith-2vcpu-ubuntu-2404"

steps:
- name: "Checkout"
Expand Down Expand Up @@ -63,8 +63,8 @@ jobs:
--output="./build/flow.phar.asc"
./build/flow.phar

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4
- name: Setup Blacksmith Builder
uses: useblacksmith/setup-docker-builder@6ff44f8e5255f9d8aa31ef22f7e57a2d926b7da0 # v1.11.0

- name: Set up QEMU
uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
Expand All @@ -77,7 +77,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Docker Image
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7
uses: useblacksmith/build-push-action@fb9e3e6a9299c78462bfadd0d93352c316adc9b8 # v2.2.0
with:
context: .
file: ./Dockerfile
Expand All @@ -86,8 +86,6 @@ jobs:
tags: |
ghcr.io/flow-php/flow:${{ github.ref_name }}
target: flow
cache-from: type=gha
cache-to: type=gha,mode=max

- name: "Upload binaries to release"
if: ${{ startsWith(github.ref, 'refs/tags/') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
php-version:
- "8.3"
operating-system:
- "ubuntu-latest"
- "blacksmith-2vcpu-ubuntu-2404"

steps:
- name: "Checkout"
Expand Down
Loading