Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

deshiloh's avatar

Deploy with Github workflow

Hi !

I'm started to take a look using CI/CD. i having a private repo to github and would like to create a workflow to testing before deploy.

i tried like this :

name: Laravel

on: [push]

jobs:
  laravel-tests:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: Copy .env
      run: php -r "file_exists('.env') || copy('.env.example', '.env');"
    - name: Install Dependencies
      run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
    - name: Generate key
      run: php artisan key:generate
    - name: Create Database
      run: |
        mkdir -p database
        touch database/database.sqlite
    - name: Execute tests (Unit and Feature tests) via PHPUnit
      env:
        DB_CONNECTION: sqlite
        DB_DATABASE: database/database.sqlite
      run: vendor/bin/phpunit
    - name: Deploy to Envoyer.io
      run: | 
        curl ${{ENVOYER_URL}}

the error says that ENVOYER_URL is unknow, i created it in my settings... what i'm doing wrong ?

Thanks for helping.

0 likes
3 replies
andrea_ortu's avatar
Level 4

In your settings secrets?? Just try to modify with "${{ secrets.ENVOYER_URL }}"

deshiloh's avatar

@andrea_ortu Thanks seems to work now, but the workflow still failed :

Run php curl ***
  php curl ***
  shell: /bin/bash -e {0}
Could not open input file: curl
##[error]Process completed with exit code 1.

any idea ?

deshiloh's avatar

I just remove php with curl and it works perfectly ! thanks you everyone !

Please or to participate in this conversation.