Skip to content

feat: Add Link component to handle LiveView navigation #13

feat: Add Link component to handle LiveView navigation

feat: Add Link component to handle LiveView navigation #13

Workflow file for this run

name: Elixir CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Build and test ${{ matrix.elixir }} / OTP ${{ matrix.otp }}
runs-on: ubuntu-20.04
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MIX_ENV: test
strategy:
fail-fast: false
matrix:
include:
- elixir: '1.13'
otp: '23.3'
- elixir: '1.15'
otp: '25.3'
- elixir: '1.17'
otp: '27.1'
steps:
- uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Restore dependency cache
uses: actions/[email protected]
id: deps-cache
with:
path: deps
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-
- name: Restore build cache
uses: actions/[email protected]
with:
path: _build
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-build-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-build-
- name: Install dependencies
if: steps.deps-cache.outputs.cache-hit != 'true'
run: mix deps.get
- name: Compile application
run: mix compile
- name: Run tests
run: mix test
- name: Run tests and coverage
if: matrix.elixir == '1.17' && matrix.otp == '27.1'
run: mix coveralls.github