Skip to content

fix: update CI runner #32

fix: update CI runner

fix: update CI runner #32

Workflow file for this run

name: CI Pipeline
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
MIX_ENV: test
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
permissions:
contents: read
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
otp: ["24.3", "25.1", "26.1"]
elixir: ["1.14.5", "1.15.6"]
lint: lint

Check failure on line 25 in .github/workflows/elixir.yaml

View workflow run for this annotation

GitHub Actions / CI Pipeline

Invalid workflow file

The workflow is not valid. .github/workflows/elixir.yaml (Line: 25, Col: 15): Unexpected value 'lint' .github/workflows/elixir.yaml (Line: 26, Col: 19): Unexpected value 'coverage'
coverage: coverage
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 dependencies cache
uses: actions/cache@v3
id: dependency-cache
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
if: steps.dependency-cache.outputs.cache-hit != 'true'
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Run the formatter
run: mix format --check-formatted
if: ${{ matrix.lint }}
- name: Check for unused dependencies
run: mix deps.unlock --check-unused
if: ${{ matrix.lint }}
- name: Compile Mix dependencies
run: mix deps.compile
- name: Compile code and check for warnings
run: mix compile --warnings-as-errors
if: ${{ matrix.lint }}
- name: Run test suite
run: mix test
if: ${{ !matrix.coverage }}
- name: Run test suite with coverage
run: mix coveralls.github
if: ${{ matrix.coverage }}