Skip to content

Bump gevent from 24.10.3 to 24.11.1 #361

Bump gevent from 24.10.3 to 24.11.1

Bump gevent from 24.10.3 to 24.11.1 #361

name: Check if a Docker image can be built
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --tag ${{ github.repository }}
# https://docs.docker.com/engine/reference/run/
- name: Start the Docker image
run: |
docker run --detach -p 1234:8888 --name=test_container ${{ github.repository }}
sleep 2
docker ps
- name: Check that /data.php accepts metrics
run: |
curl 0:1234/data.php -v -H 'User-Agent: NRZ-2020-129/12345678' -H 'X-Sensor: esp8266-12345678' -H 'Content-Type: application/json' -d '{"esp8266id": "12345678", "software_version": "NRZ-2020-129", "sensordatavalues":[{"value_type":"SDS_P1","value":"0.40"},{"value_type":"SDS_P2","value":"0.20"},{"value_type":"BME280_temperature","value":"20.47"},{"value_type":"BME280_pressure","value":"100613.25"},{"value_type":"BME280_humidity","value":"69.02"},{"value_type":"samples","value":"4222662"},{"value_type":"min_micro","value":"32"},{"value_type":"max_micro","value":"3301275"},{"value_type":"signal","value":"-94"}]}'
curl 0:1234/data.php -v -H 'User-Agent: NRZ-2020-129/12345670' -H 'X-Sensor: esp8266-12345670' -H 'Content-Type: application/json' -d '{"esp8266id": "12345670", "software_version": "NRZ-2020-129", "sensordatavalues":[{"value_type":"BME280_temperature","value":"22.17"},{"value_type":"BME280_pressure","value":"100607.25"},{"value_type":"BME280_humidity","value":"65.46"},{"value_type":"samples","value":"4222662"},{"value_type":"min_micro","value":"32"},{"value_type":"max_micro","value":"3301275"},{"value_type":"signal","value":"-94"}]}'
- name: Check that /metrics endpoint exposes Prometheus metrics
run: |
curl 0:1234/metrics | tee /tmp/metrics
grep '# HELP airrohr_info Information about the sensor.' /tmp/metrics
grep 'airrohr_info{sensor_id="esp8266-12345678",software="NRZ-2020-129"} 1.0' /tmp/metrics
docker logs test_container