wip: add github ci config
[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                 uses: shivammathur/setup-php@v2
27                 with:
28                     php-version: ${{ matrix.php }}
29                     extensions: curl
30                     #tools: phpunit
31             #-
32             #    run: 'php -v && env'
33             -
34                 uses: actions/checkout@v2
35             -
36                 run: 'chmod 755 ./tests/ci/setup/*.sh && sudo ./tests/ci/setup/setup_perl.sh && sudo ./tests/ci/setup/setup_apache.sh && sudo ./tests/ci/setup/setup_privoxy.sh'