update CI workflow #63
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 | |
# This workflow runs on pushes to the main branch | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: elixir:1.8.2-otp-22 | |
steps: | |
- uses: actions/checkout@v4 | |
- 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 |