0b7515454d7f24390623d48d5bb415e863257c52
[plcapi.git] / .github / workflows / ci.yml
1 name: CI
2
3 on: [push]
4
5 jobs:
6     test:
7         runs-on: ubuntu-latest
8         env:
9             HTTPSERVER: localhost
10             URI: /demo/server/server.php
11             HTTPSSERVER: localhost
12             HTTPSURI: /demo/server/server.php
13             PROXYSERVER: localhost:8080
14             # Travis currently compiles PHP with an oldish cURL/GnuTLS combination;
15             # to make the tests pass when Apache has a bogus SSL cert whe need the full set of options below
16             HTTPSVERIFYHOST: 0
17             HTTPSIGNOREPEER: 1
18             SSLVERSION: 0
19             DEBUG: 0
20         strategy:
21             fail-fast: false
22             matrix:
23                 php: ['8.1', '8.0', '7.4', '7.3', '7.2', '7.1', '7.0', '5.6', '5.5', '5.4', '5.3']
24         steps:
25             -
26                 #name: Set up PHP
27                 uses: shivammathur/setup-php@v2
28                 with:
29                     php-version: ${{ matrix.php }}
30                     extensions: curl
31                     #tools: phpunit
32             -
33                 #name: Hello World
34                 run: 'php -v && env'
35             -
36                 uses: actions/checkout@v2