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/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ cache-mode: none

jobs:
auto-merge-pull-request:
if: github.event.pull_request.user.login == 'dependabot[bot]'
permissions:
contents: read
pull-requests: read
cache-mode: none
runs-on: ubuntu-slim
if: github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: dependabot-metadata
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-major-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
runs-on: ubuntu-slim
steps:
- name: Create GitHub App Token
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
id: app-token
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
client-id: ${{ vars.TASTENDRUCK_CLIENT_ID }}
private-key: ${{ secrets.TASTENDRUCK_PRIVATE_KEY }}
Expand Down
49 changes: 26 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
push:
branches:
- main
tags:
- '**'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}
Expand All @@ -19,7 +17,8 @@ permissions: {}

jobs:
positive:
runs-on: ${{ matrix.runs-on }}
permissions:
contents: read
strategy:
matrix:
runs-on:
Expand Down Expand Up @@ -84,7 +83,7 @@ jobs:
source: offline
case: complex
verify-attestation: true

runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand Down Expand Up @@ -120,23 +119,24 @@ jobs:
id: golden

- name: Assert constraint output
run: exit 1
if: steps.subject.outputs.constraint != fromJSON(steps.golden.outputs.expected).constraint
run: exit 1

- name: Assert versions output
run: exit 1
if: steps.subject.outputs.versions != toJSON(fromJSON(steps.golden.outputs.expected).versions)
run: exit 1

- name: Assert lowest output
run: exit 1
if: steps.subject.outputs.lowest != fromJSON(steps.golden.outputs.expected).lowest
run: exit 1

- name: Assert highest output
run: exit 1
if: steps.subject.outputs.highest != fromJSON(steps.golden.outputs.expected).highest
run: exit 1

outputs:
runs-on: ${{ matrix.runs-on }}
permissions:
contents: read
strategy:
matrix:
runs-on:
Expand All @@ -146,38 +146,40 @@ jobs:
- ubuntu-24.04
- ubuntu-24.04-arm
- xcode-27
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
path: local-action

- uses: $/
id: subject
- id: subject
uses: $/
with:
composer-json: local-action/testdata/complex.composer.json
mode: minor-only
source: offline
verify-attestation: false

- name: Assert constraint output
run: exit 1
if: steps.subject.outputs.constraint != '^7.3.32 || ^8.1 <=8.1.9'
run: exit 1

- name: Assert versions output
run: exit 1
if: steps.subject.outputs.versions != toJSON(fromJSON('["7.3","7.4","8.1"]'))
run: exit 1

- name: Assert lowest output
run: exit 1
if: steps.subject.outputs.lowest != '7.3'
run: exit 1

- name: Assert highest output
run: exit 1
if: steps.subject.outputs.highest != '8.1'
run: exit 1

negative:
runs-on: ${{ matrix.runs-on }}
permissions:
contents: read
strategy:
matrix:
runs-on:
Expand Down Expand Up @@ -221,7 +223,7 @@ jobs:
mode: full
source: offline
case: missing-require

runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand All @@ -233,8 +235,8 @@ jobs:
env:
CASE: ${{ matrix.case }}

- uses: $/
id: subject
- id: subject
uses: $/
with:
mode: ${{ matrix.mode }}
source: ${{ matrix.source }}
Expand All @@ -246,7 +248,8 @@ jobs:
run: exit 1

missing:
runs-on: ${{ matrix.runs-on }}
permissions:
contents: read
strategy:
matrix:
runs-on:
Expand Down Expand Up @@ -278,13 +281,13 @@ jobs:
- runs-on: xcode-27
mode: full
source: offline

runs-on: ${{ matrix.runs-on }}
steps:
- name: Ensure no composer.json
run: rm -f composer.json

- uses: $/
id: subject
- id: subject
uses: $/
with:
mode: ${{ matrix.mode }}
source: ${{ matrix.source }}
Expand Down
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,17 @@ jobs:
sparse-checkout-cone-mode: false
persist-credentials: false

- uses: typisttech/php-matrix-action@73b41f402280305866c655b5a2485d5c9d7a36bc # v4.0.0
id: php-matrix
- id: php-matrix
uses: typisttech/php-matrix-action@73b41f402280305866c655b5a2485d5c9d7a36bc # v4.0.0


test:
runs-on: ubuntu-latest
needs: php-matrix
needs:
- php-matrix
strategy:
matrix:
php-version: ${{ fromJSON(needs.php-matrix.outputs.versions) }}
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand All @@ -165,13 +167,15 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: typisttech/php-matrix-action@73b41f402280305866c655b5a2485d5c9d7a36bc # v4.0.0
id: php-matrix

- id: php-matrix
uses: typisttech/php-matrix-action@73b41f402280305866c655b5a2485d5c9d7a36bc # v4.0.0


- uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0
with:
Expand Down
Loading