Skip to content

update default branch to master in CI workflow #57

update default branch to master in CI workflow

update default branch to master in CI workflow #57

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
steps:
- uses: actions/checkout@v3
- name: Setup Elixir and OTP
uses: actions/setup-elixir@v1
with:
otp-version: '22.1'
elixir-version: '1.8'
- name: Install dependencies
run: mix deps.get
- name: Format code (optional)
run: mix format --check-formatted
- name: Start Redis container (optional)
uses: redis/redis-action@v2
with:
redis-version: '5'
- name: Run tests
run: |
REDIS_HOST=localhost REDIS_PORT=6379 mix test