diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0aa1e176..c6951223 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,18 +6,20 @@ on: [push, pull_request, workflow_dispatch] jobs: build-and-run-tests: 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: 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: - uses: actions/checkout@v2 - name: Install dependencies run: | 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 run: make - name: Run Webdis and test @@ -26,6 +28,8 @@ jobs: sleep 2 ./tests/basic.py ./tests/curl-tests.sh + pip3 install -r tests/requirements.txt + ./tests/ws-tests.py - name: Archive logs uses: actions/upload-artifact@v2 with: diff --git a/.github/workflows/webdis-ci.json b/.github/workflows/webdis-ci.json index 3174b7df..2d30d753 100644 --- a/.github/workflows/webdis-ci.json +++ b/.github/workflows/webdis-ci.json @@ -9,7 +9,7 @@ "pool_size": 20, "daemonize": true, - "websockets": false, + "websockets": true, "database": 0, "acl": [