wip: add github ci config
authorgggeek <giunta.gaetano@gmail.com>
Mon, 6 Dec 2021 15:24:41 +0000 (15:24 +0000)
committergggeek <giunta.gaetano@gmail.com>
Mon, 6 Dec 2021 15:24:41 +0000 (15:24 +0000)
.github/workflows/ci.yml [new file with mode: 0644]

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644 (file)
index 0000000..0b75154
--- /dev/null
@@ -0,0 +1,36 @@
+name: CI
+
+on: [push]
+
+jobs:
+    test:
+        runs-on: ubuntu-latest
+        env:
+            HTTPSERVER: localhost
+            URI: /demo/server/server.php
+            HTTPSSERVER: localhost
+            HTTPSURI: /demo/server/server.php
+            PROXYSERVER: localhost:8080
+            # Travis currently compiles PHP with an oldish cURL/GnuTLS combination;
+            # to make the tests pass when Apache has a bogus SSL cert whe need the full set of options below
+            HTTPSVERIFYHOST: 0
+            HTTPSIGNOREPEER: 1
+            SSLVERSION: 0
+            DEBUG: 0
+        strategy:
+            fail-fast: false
+            matrix:
+                php: ['8.1', '8.0', '7.4', '7.3', '7.2', '7.1', '7.0', '5.6', '5.5', '5.4', '5.3']
+        steps:
+            -
+                #name: Set up PHP
+                uses: shivammathur/setup-php@v2
+                with:
+                    php-version: ${{ matrix.php }}
+                    extensions: curl
+                    #tools: phpunit
+            -
+                #name: Hello World
+                run: 'php -v && env'
+            -
+                uses: actions/checkout@v2