GHA: upgrade Ubuntu, include Websocket tests

* Switch from Ubuntu 18.04 to 20.04
* Install WS dependency with pip
* Run WS tests as part of the "build" GHA
master
Nicolas Favre-Felix 1 year ago
parent b59d866e06
commit 9a29a85a94
No known key found for this signature in database
GPG Key ID: C04E7AA8B6F73372

@ -6,18 +6,20 @@ on: [push, pull_request, workflow_dispatch]
jobs: jobs:
build-and-run-tests: build-and-run-tests:
runs-on: ubuntu-20.04 # this is a GitHub Runner, hosting the execution runs-on: ubuntu-20.04 # this is a GitHub Runner, hosting the execution
container: ubuntu:18.04 # but this is a Docker Hub container, in which everything runs container: ubuntu:20.04 # but this is a Docker Hub container, in which everything runs
services: services:
redis: redis:
image: redis:6.2.1-alpine # Docker Hub image used as a sidecar image: redis:7.0.12-alpine # Docker Hub image used as a sidecar
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install dependencies - name: Install dependencies
run: | run: |
apt-get -y update apt-get -y update
apt-get -y --force-yes install make gcc libevent-dev libmsgpack-dev python3 curl apt-get -y --allow-unauthenticated --allow-downgrades --allow-remove-essential --allow-change-held-packages \
install make gcc libevent-dev libmsgpack-dev python3.8 python3-pip curl
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
- name: Build - name: Build
run: make run: make
- name: Run Webdis and test - name: Run Webdis and test
@ -26,6 +28,8 @@ jobs:
sleep 2 sleep 2
./tests/basic.py ./tests/basic.py
./tests/curl-tests.sh ./tests/curl-tests.sh
pip3 --no-cache-dir install -r tests/requirements.txt
./tests/ws-tests.py
- name: Archive logs - name: Archive logs
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:

@ -9,7 +9,7 @@
"pool_size": 20, "pool_size": 20,
"daemonize": true, "daemonize": true,
"websockets": false, "websockets": true,
"database": 0, "database": 0,
"acl": [ "acl": [

Loading…
Cancel
Save