Minor code improvements (#85) #70
Workflow file for this run
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
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- elixir: 1.15.0 | |
otp: 25.3 | |
env: | |
MIX_ENV: test | |
services: | |
postgres: | |
image: postgres:13 | |
ports: | |
- 5432:5432 | |
env: | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_USER: postgres | |
POSTGRES_DB: trans_test | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{ matrix.otp }} | |
elixir-version: ${{ matrix.elixir }} | |
- name: Prepare test environment | |
run: | | |
cp config/test.ci.exs config/test.exs | |
- name: Fetch and compile dependencies | |
run: | | |
mix deps.get | |
mix deps.compile | |
- name: Compile application | |
run: | | |
mix compile --warnings-as-erros | |
- name: Check format | |
run: | | |
mix format --check-formatted | |
- name: Run tests | |
run: | | |
mix test |