Skip to content

Add key support

Add key support #25

Workflow file for this run

name: Build and test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: kafkaesque_test
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
kafka:
image: wurstmeister/kafka
env:
KAFKA_ADVERTISED_HOST_NAME: localhost
KAFKA_ADVERTISED_PORT: 9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
ports:
- 9092:9092
depends-on:

Check failure on line 37 in .github/workflows/elixir.yml

View workflow run for this annotation

GitHub Actions / Build and test

Invalid workflow file

The workflow is not valid. .github/workflows/elixir.yml (Line: 37, Col: 9): Unexpected value 'depends-on'
- zookeeper
options: >-
--health-cmd "nc -z localhost 9092"
--health-interval 10s
--health-timeout 5s
--health-retries 5
zookeeper:
image: wurstmeister/zookeeper
ports:
- 2181:2181
options: >-
--health-cmd "echo stat | nc localhost 2181 | grep Mode"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
elixir-version: '1.14'
otp-version: '25'
- name: Restore dependencies cache
uses: actions/cache@v2
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Setup Database
env:
MIX_ENV: test
run: mix ecto.create && mix ecto.migrate
- name: Check formatting
run: mix format --check-formatted
- name: Test
run: mix test
- name: Dialyzer
run: mix dialyzer