Skip to content

Copy composer to /tmp/ #20

Copy composer to /tmp/

Copy composer to /tmp/ #20

name: Update Latest Versions
on:
push:
branches:
- "**" # For test purposes, always run the workflow
workflow_dispatch: # can be triggered manually
schedule:
- cron: "0 0 * * 0" # weekly on Sunday at midnight
jobs:
update-latest-versions:
runs-on: ubuntu-24.04
permissions:
contents: write
actions: read
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install PHP
run: |
sudo apt-get update
sudo apt-get install -y php php-cli
- name: Install composer
run: |
php -r "copy('https://getcomposer.org/installer', '/tmp/composer-setup.php');"
php /tmp/composer-setup.php
php -r "unlink('/tmp/composer-setup.php');"
- name: Install PHP Tracer # Required by test bootstrap
run: |
curl -Lo /tmp/datadog-setup.php https://github.com/DataDog/dd-trace-php/releases/latest/download/datadog-setup.php
sudo php /tmp/datadog-setup.php --php-bin=all
rm /tmp/datadog-setup.php
- name: Update Test Dependencies
run: make composer_tests_update
- name: Update Latest Versions
run: php tests/update-latest-versions.php
- name: Show changes
run: git diff
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: update latest versions"
title: "chore: update latest versions"
branch: "update-latest-versions"
base: "alex/AIDM-529_testing-latest" # TODO: Update to "master" when ready
draft: true # TODO: set to false when ready
delete-branch: true
body: "This PR updates the latest pinned versions of the test dependencies."