Skip to content

Update default branch name to 'main' in CI workflow #24

Update default branch name to 'main' in CI workflow

Update default branch name to 'main' in CI workflow #24

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
env:
CACHE_VERSION: 1
jobs:
test:
runs-on: ubuntu-latest
name: OTP ${{ matrix.otp }} - Elixir ${{ matrix.elixir }}
env:
MIX_ENV: "test"
ELIXIR_VERSION: ${{ matrix.elixir }}
OTP_VERSION: ${{ matrix.otp }}
strategy:
fail-fast: false
# https://hexdocs.pm/elixir/1.17.0/compatibility-and-deprecations.html
matrix:
otp: ["24", "25", "26"]
elixir: ["1.15.5", "1.16.3", "1.17.1"]
exclude:
- otp: "24"
elixir: "1.17.1"
include:
- otp: "27"
elixir: "1.17.1"
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Setup OTP and Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Install Dependencies
run: mix deps.get
- name: Run Tests
run: mix test