Skip to content

Update main.yml

Update main.yml #60

Workflow file for this run

name: Elixir CI
# This workflow runs on pushes to the main branch
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
strategy:
matrix:
otp: ['20.3', '21.3', '22.2']
elixir: ['1.8.2', '1.9.4']
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Install dependencies
run: mix deps.get
- name: Lint
run: mix format --check-formatted
- name: Start Redis container
uses: supercharge/[email protected]
with:
redis-version: '5'
- name: Run tests
run: |
REDIS_HOST=localhost REDIS_PORT=6379 mix test