Skip to content

chore(format): mix format pass on UI-glyph commits #102

chore(format): mix format pass on UI-glyph commits

chore(format): mix format pass on UI-glyph commits #102

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
MIX_ENV: test
ELIXIR_VERSION: "1.19.5"
OTP_VERSION: "28.0"
services:
postgres:
image: postgres:16
env:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Set up BEAM
uses: erlef/setup-beam@v1
with:
otp-version: ${{ env.OTP_VERSION }}
elixir-version: ${{ env.ELIXIR_VERSION }}
- name: Cache deps
uses: actions/cache@v4
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-
- name: Install deps
run: mix deps.get
- name: Compile deps
run: mix deps.compile
- name: Compile (warnings as errors)
run: mix compile --warnings-as-errors
- name: Format check
run: mix format --check-formatted
- name: Credo
run: mix credo --strict
- name: Sobelow
run: mix sobelow --config .sobelow-conf --exit Low
- name: Test with coverage
env:
DATABASE_URL: ecto://postgres:postgres@localhost/volable_test
run: mix test --cover
- name: Coverage summary
if: github.event_name == 'pull_request'
env:
DATABASE_URL: ecto://postgres:postgres@localhost/volable_test
run: mix coveralls.github