Maintenance version updates #68
Workflow file for this run
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: Mix Tests | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
name: Elixir ${{ matrix.elixir }} with OTP ${{ matrix.otp }} | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
elixir: | |
- '1.17' | |
- '1.16' | |
- '1.15' | |
otp: | |
- '27.0' | |
- '26.2' | |
- '25.3' | |
- '24.3' | |
exclude: | |
- elixir: '1.17' | |
otp: '24.3' | |
- elixir: '1.16' | |
otp: '27.0' | |
- elixir: '1.15' | |
otp: '27.0' | |
services: | |
redis: | |
image: redis | |
ports: ['6379:6379'] | |
steps: | |
- name: Set up Elixir and OTP | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: ${{ matrix.elixir }} | |
otp-version: ${{ matrix.otp }} | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: 'Restore cache for deps/ and _build/ directories' | |
uses: actions/cache@v4 | |
with: | |
path: | | |
deps | |
_build | |
key: ${{ runner.os }}-mix-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('**/mix.lock') }} | |
restore-keys: ${{ runner.os }}-mix-${{ matrix.elixir }}-${{ matrix.otp }}- | |
- name: Install Mix dependencies | |
run: mix deps.get | |
- name: Run the tests | |
run: mix test |