Makes sure current selection is saved for pre-selected & forced values #428
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: Elixir CI | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
env: | |
ELIXIR_LATEST: '1.16.0' | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: Build and test with elixir ${{ matrix.elixir }} otp ${{ matrix.otp }} | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
include: | |
- elixir: '1.14.0' | |
otp: '25.0' | |
- elixir: '1.15.0' | |
otp: '26.0' | |
- elixir: '1.16.0' | |
otp: '26.0' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: ${{ matrix.elixir }} | |
otp-version: ${{ matrix.otp }} | |
- name: Restore dependencies cache | |
uses: actions/cache@v3 | |
with: | |
path: deps | |
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | |
restore-keys: ${{ runner.os }}-mix- | |
- name: Install dependencies | |
run: mix deps.get | |
- name: Compile with warnings | |
if: ${{ matrix.elixir == env.ELIXIR_LATEST}} | |
run: mix compile --warnings-as-errors | |
- name: Compile without warnings | |
if: ${{ matrix.elixir != env.ELIXIR_LATEST}} | |
run: mix compile | |
- name: Check format | |
run: mix format --check-formatted | |
if: ${{ matrix.elixir == env.ELIXIR_LATEST}} | |
- name: Credo | |
run: mix credo | |
if: ${{ matrix.elixir == env.ELIXIR_LATEST}} | |
- name: Run tests | |
run: mix test |