fix: Cache child spec for starting under a supervisor #77
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: Test | |
on: push | |
jobs: | |
Test: | |
runs-on: ubuntu-latest | |
services: | |
redis: | |
image: redis/redis-stack | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 6379:6379 | |
env: | |
MIX_ENV: test | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: '1.14.1' # Define the elixir version [required] | |
otp-version: '25.1.2' # Define the OTP version [required] | |
- name: Restore dependencies cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
_build | |
deps | |
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}-${{ hashFiles('./.tool-versions') }} | |
restore-keys: ${{ runner.os }}-mix- | |
- name: Install Dependencies | |
run: mix deps.get | |
- name: Compile Project | |
run: mix compile | |
- name: Run Tests | |
run: mix test |