Skip to content

Merge pull request #44 from s3cur3/ty/mobile-css #78

Merge pull request #44 from s3cur3/ty/mobile-css

Merge pull request #44 from s3cur3/ty/mobile-css #78

Workflow file for this run

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.18'
- '1.17'
- '1.16'
otp:
- '27.2'
- '27.1'
- '26.2'
- '25.3'
exclude:
# Elixir 1.18 + OTP 25 is technically supported:
# https://hexdocs.pm/elixir/1.18.1/compatibility-and-deprecations.html#between-elixir-and-erlang-otp
# but not on GHA:
# https://github.com/tompave/fun_with_flags/actions/runs/12515433561/job/34912997388?pr=189#step:5:20
- elixir: '1.18'
otp: '25.3'
- elixir: '1.16'
otp: '27.2'
- elixir: '1.16'
otp: '27.1'
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