GitHub Actions
On this page
#GitHub Actions
You can use the library inside a GitHub workflow.
An example is done here.
#Workflow
You will need to setup a PHP 8.2 version with GD extension.
Also, the needs to create an .env file will be achieved by a specific action.
Copied!
1#.github/workflows/php.yml 2name: PHP Composer 3 4on: 5 push: 6 branches: [ "main" ] 7 pull_request: 8 branches: [ "main" ] 9 workflow_dispatch:101112permissions:13 contents: read1415jobs:16 build:1718 runs-on: ubuntu-latest1920 steps:21 - uses: actions/checkout@v422 - run: |23 git config --global --add safe.directory /app2425 - name: Setup PHP26 uses: shivammathur/setup-php@v227 with:28 php-version: '8.2'29 extensions: gd30 tools: composer:v23132 - name: Validate composer.json and composer.lock33 run: composer validate --strict3435 - name: Install dependencies36 run: composer install --prefer-dist --no-progress3738 - name: Make envfile39 uses: SpicyPizza/create-envfile@v2.040 with:41 envkey_PRESTAFLOW_PS_VERSION: "9.0.0"42 envkey_PRESTAFLOW_LOCALE: "fr"43 file_name: .env4445 - name: Run test suite46 run: composer prestaflow:default