php-actions / phpunit

Run PHPUnit tests in Github Actions.
106 stars 23 forks source link

php 7.1 not available #41

Closed Max84 closed 1 year ago

Max84 commented 2 years ago

Hi,

How can I use php 7.1? I tested 7.4, 8.0, there is no problem. It can be useful to run phpunit with old php versions.

I got this error:

 Pulling docker.pkg.github.com/.../php-actions_phpunit_...:php-7.1-build2
  Error response from daemon: manifest for docker.pkg.github.com/...:php-7.1-build2 not found: manifest unknown: Docker image reference php-actions_phpunit_...:php-7.1-build2 not found under repo "..."
  Dockerfile:
  FROM php:7.1-cli-alpine

thanks for help

g105b commented 2 years ago

Hi @Max84 ,

Please can you provide your Github Actions yml configuration, so I can double check in a test repo? I've checked Docker Hub and 7.1 should still be available, so I'd like to create an example test case to explore this myself.

Thanks

Max84 commented 2 years ago

Of course. Thanks.

name: TestsUnitaires

on:
  push:
    branches: [ main ]
  pull_request:

  workflow_dispatch:

jobs:

  TestsUnitaires:

    runs-on: ubuntu-latest

      - uses: actions/checkout@v3         

      - name: Tests unitaires
        uses: php-actions/phpunit@v3
        with:
            version: 5.7.19
            php_version: 7.1 
            configuration: .github/workflows/phpunit.xml
g105b commented 2 years ago

I think this might be a yaml issue - take a look at https://github.com/php-actions/example-phpunit/runs/6094836148, it runs fine with 7.1 but the value 7.1 has been entered in a string (otherwise yaml doesn't see the .1)

See: https://github.com/php-actions/example-phpunit/blob/master/.github/workflows/ci-php71.yml#L22

Hope that helps!

Max84 commented 2 years ago

I tested with "7.1" instead of 7.1. I get the same result. With 7.2, it is KO too, it starts working with 7.3+.

g105b commented 2 years ago

Interesting, thanks for the information... I'll see if I can get any answers for you.

g105b commented 1 year ago

PHP 7.1 is no longer supported by the PHP community or PHPUnit. If you need to test on PHP 7.1, please re-open this and I'll see what I can do, but at the moment I'm trying to take control over the time I can put into these open source repositories.