Skip to content

matching version of elixir and OTP in actions with the asdf versions … #10

matching version of elixir and OTP in actions with the asdf versions …

matching version of elixir and OTP in actions with the asdf versions … #10

Workflow file for this run

name: Tests
on:
push
jobs:
elixir-test:
name: Test Elixir
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-24.04]
otp: [26.1.2]
elixir: [1.15.7]
services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: ranger_test
POSTGRES_PORT: 5432
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- name: Install dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Prepare upload directory
run: mkdir -p priv/static/uploads/test
- name: Run tests
run: |
mix compile --force --
mix test test/ranger_web/live/greet_live_test.exs
mix test test/ranger_web/live/avatar_live_test.exs
mix test test/ranger_web/live/counter_live_test.exs