Skip to content

Bump GitHub InfluxDB v2.7.x release #25

Bump GitHub InfluxDB v2.7.x release

Bump GitHub InfluxDB v2.7.x release #25

Workflow file for this run

name: Test InfluxDB v1.7
on:
pull_request:
push:
branches:
- master
- test
tags:
- '*'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- elixir: '1.15.7'
otp: '26.1'
services:
influxdb:
image: influxdb:1.7.11
env:
INFLUXDB_HTTP_AUTH_ENABLED: true
INFLUXDB_HTTP_FLUX_ENABLED: true
INFLUXDB_ADMIN_USER: instream_test
INFLUXDB_ADMIN_PASSWORD: instream_test
INFLUXDB_UDP_ENABLED: true
INFLUXDB_UDP_BIND_ADDRESS: ':8089'
INFLUXDB_UDP_DATABASE: test_database
INFLUXDB_UDP_BATCH_SIZE: 1000
INFLUXDB_UDP_BATCH_TIMEOUT: '1s'
INFLUXDB_UDP_BATCH_PENDING: 5
ports:
- 8086:8086
- 8089:8089/udp
env:
INFLUXDB_HOST: localhost
INFLUXDB_PORT: 8086
INFLUXDB_SCHEME: http
INFLUXDB_VERSION: '1.7'
INFLUXDB_V1_DATABASE: test_database
INFLUXDB_V1_PASSWORD: instream_test
INFLUXDB_V1_PORT_UDP: 8089
INFLUXDB_V1_USERNAME: instream_test
steps:
- uses: actions/checkout@v4
- name: setup
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: mix-cache
uses: actions/cache@v3
id: mix-cache
with:
path: deps
# yamllint disable-line rule:line-length
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
- name: mix-deps
if: steps.mix-cache.outputs.cache-hit != 'true'
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: test
run: |
until curl -s -o /dev/null "http://${INFLUXDB_HOST}:${INFLUXDB_PORT}" 2>/dev/null; do
sleep 1
done
mix coveralls