Add contract_id field #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Elixir CI | |
on: | |
push: | |
branches: [master, stable] | |
pull_request: | |
branches: [master, stable] | |
jobs: | |
build: | |
name: Build and test | |
runs-on: buildjet-4vcpu-ubuntu-2004 | |
services: | |
postgres: | |
image: postgres:12 | |
ports: | |
- 5432:5432 | |
env: | |
POSTGRES_PASSWORD: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
clickhouse: | |
image: yandex/clickhouse-server:21.11 | |
ports: | |
- 8123:8123 | |
env: | |
options: >- | |
--health-cmd nc -zw3 localhost 8124 | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Read .tool-versions | |
uses: marocchino/tool-versions-action@v1 | |
id: versions | |
- name: Set up Elixir | |
uses: erlef/setup-elixir@v1 | |
with: | |
elixir-version: ${{steps.versions.outputs.elixir}} | |
otp-version: ${{ steps.versions.outputs.erlang}} | |
- name: Restore dependencies cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
deps | |
_build | |
priv/plts | |
key: ${{ runner.os }}-mix-v1-${{ hashFiles('**/mix.lock') }} | |
restore-keys: ${{ runner.os }}-mix-v1- | |
- name: Install dependencies | |
run: mix deps.get | |
- name: Check Formatting | |
run: mix format --check-formatted | |
- name: Check Compile Warnings | |
run: mix compile --warnings-as-errors --all-warnings | |
- name: Run tests | |
run: mix test | |
#- name: Check Dialyzer | |
# run: mix dialyzer <-- false negatives | |
- name: Check Credo Warnings | |
run: mix credo --strict --only warning --ignore Consistency | |
env: | |
MIX_ENV: test |