【问题标题】:Is php5.6 still an accepted testing version in Github testing actions?php5.6 仍然是 Github 测试操作中可接受的测试版本吗?
【发布时间】:2020-09-12 19:23:48
【问题描述】:

我是第一次使用 Github 操作,并使用它对合并请求运行自动化测试。我看到我可以让它在多个 PHP 版本上运行测试,如下所示:

   strategy:
     matrix:
       php: [5.6, 7.0, 7.1, 7.2, 7.3]

但是这会失败并出现错误php5.6: command not found。它对 PHP7.0 执行相同的操作,但对 7.1、7.2 和 7.3 都可以。我已经尽可能多地搜索了,但我看不到任何对 PHP5.6 或 PHP7.0 的引用不再可用,所以我很困惑。

谁能解释一下可能发生的事情?

【问题讨论】:

  • 我的回答解决了你的问题吗?

标签: php github github-actions


【解决方案1】:

这取决于您使用的跑步者。由于您没有指定您在此处使用的哪个是所有跑步者和已安装软件的概述:https://help.github.com/en/actions/reference/software-installed-on-github-hosted-runners

F.e. Ubuntu 18.04 有以下 PHP 版本:

  • PHP 7.1(PHP 7.1.33-16+ubuntu18.04.1+deb.sury.org+1 (cli)(构建时间:2020 年 5 月 14 日 08:27:11)(NTS))
  • PHP 7.2(PHP 7.2.31-1+ubuntu18.04.1+deb.sury.org+1 (cli)(构建时间:2020 年 5 月 14 日 08:27:35)(NTS))
  • PHP 7.3(PHP 7.3.18-1+ubuntu18.04.1+deb.sury.org+1 (cli)(构建时间:2020 年 5 月 14 日 10:34:44)(NTS))
  • PHP 7.4(PHP 7.4.6 (cli)(构建时间:2020 年 5 月 14 日 10:02:44)(NTS))

【讨论】:

    猜你喜欢
    • 2021-06-23
    • 1970-01-01
    • 2013-07-11
    • 1970-01-01
    • 2021-11-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-26
    相关资源
    最近更新 更多