Skip to content

Commit

Permalink
Add InfluxDB Cloud to testing matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
mneudert committed Dec 20, 2022
1 parent 71ececf commit 964ae16
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/test-cloud.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Test InfluxDB Cloud

on:
pull_request:
push:
branches:
- master
- test
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-22.04

strategy:
matrix:
include:
- elixir: '1.14.2'
otp: '25.0'
influxdb_test_version: cloud

env:
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INFLUXDB_HOST: ${{ secrets.INFLUXDB_CLOUD_HOST }}
INFLUXDB_PORT: ${{ secrets.INFLUXDB_CLOUD_PORT }}
INFLUXDB_SCHEME: https
INFLUXDB_VERSION: ${{ matrix.influxdb_test_version }}
INFLUXDB_V2_BUCKET: ${{ secrets.INFLUXDB_CLOUD_BUCKET }}
INFLUXDB_V2_DATABASE: ${{ secrets.INFLUXDB_CLOUD_DATABASE }}
INFLUXDB_V2_ORG: ${{ secrets.INFLUXDB_CLOUD_ORG }}
INFLUXDB_V2_RETENTION: ${{ secrets.INFLUXDB_CLOUD_RETENTION }}
INFLUXDB_V2_TOKEN: ${{ secrets.INFLUXDB_CLOUD_TOKEN }}

steps:
- uses: actions/checkout@v3

- 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
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: mix test
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Tested InfluxDB versions:
- `2.4.0`
- `2.5.1`
- `2.6.0`
- `cloud`

## Package Setup

Expand Down

0 comments on commit 964ae16

Please sign in to comment.