Bump redix from 1.2.0 to 1.2.2 (#48) #58
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: CI | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
env: | |
MIX_ENV: test | |
# The hostname used to communicate with the Redis service container | |
REDIS_HOST: localhost | |
services: | |
redis: | |
# Docker Hub image | |
image: redis | |
ports: | |
- 6379:6379 | |
# Set health checks to wait until redis has started | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, ubuntu-20.04] | |
elixir_version: [1.12.3, 1.13.3, 1.14.1] | |
otp_version: [24, 25] | |
exclude: | |
- otp_version: 25 | |
elixir_version: 1.12.3 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{matrix.otp_version}} | |
elixir-version: ${{matrix.elixir_version}} | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
deps | |
_build | |
key: deps-${{ runner.os }}-${{ matrix.otp_version }}-${{ matrix.elixir_version }}-${{ hashFiles('**/mix.lock') }} | |
restore-keys: | | |
deps-${{ runner.os }}-${{ matrix.otp_version }}-${{ matrix.elixir_version }} | |
- run: mix deps.get | |
- run: mix format --check-formatted | |
- run: mix deps.unlock --check-unused | |
- run: mix deps.compile | |
- run: mix compile --warnings-as-errors | |
- run: mix credo --strict --format=oneline | |
- run: mix test --warnings-as-errors --cover |