Skip to content

Fix typos and warnings #278

Fix typos and warnings

Fix typos and warnings #278

Workflow file for this run

name: build
on:
push:
branches:
- "**"
pull_request:
branches:
- master
types: [opened, synchronize, closed]
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-20.04
name: Tests on ${{matrix.environment.elixir-version}} / CH ${{matrix.clickhouse}} / HTTP Adapter ${{matrix.adapter}}
strategy:
matrix:
adapter: [HttpcAdapter, TeslaMintAdapter]
clickhouse: [22.5, 22.9.2, 23.1]
environment:
- elixir-version: 1.14
otp-version: 25.0.4
- elixir-version: 1.13
otp-version: 24.3.4
services:
clickhouse:
image: clickhouse/clickhouse-server:${{matrix.clickhouse}}
ports:
- 8123:8123
steps:
- uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@988e02bfe678367a02564f65ca2e37726dc0268f
with: ${{matrix.environment}}
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps/
key: deps-${{ runner.os }}-${{ matrix.environment.otp-version }}-${{ matrix.environment.elixir-version }}-${{ hashFiles('**/mix.lock') }}
- name: Restore build cache
uses: actions/cache@v3
with:
path: _build/test/
key: build-${{ runner.os }}-${{ matrix.environment.otp-version }}-${{ matrix.environment.elixir-version }}-${{ hashFiles('**/mix.lock') }}
- name: Install dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
mix compile
mix format --check-formatted
- name: Run tests
run: mix test
env:
PILLAR_HTTP_ADAPTER: ${{matrix.adapter}}
MIX_ENV: test
CLICKHOUSE_URL: "http://localhost:8123"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}