Skip to content

Bump gettext from 0.24.0 to 0.26.2 in /backend #290

Bump gettext from 0.24.0 to 0.26.2 in /backend

Bump gettext from 0.24.0 to 0.26.2 in /backend #290

Workflow file for this run

name: Backend CI
on:
push:
paths:
- "backend/**"
branches:
- main
pull_request:
paths:
- "backend/**"
branches:
- main
permissions:
contents: read
defaults:
run:
working-directory: backend
jobs:
build:
name: Build and test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: "1.16.1"
otp-version: "26.2.2"
- name: Retrieve Mix Dependencies Cache
uses: actions/cache@v3
id: mix-cache
with:
path: backend/deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
- name: Install Mix Dependencies
if: steps.mix-cache.outputs.cache-hit != 'true'
run: |
mkdir -p deps
mix deps.get
- name: Check format
run: mix format --check-formatted
- name: Check compile warnings
run: mix compile --warnings-as-errors
- name: Run tests
run: mix test
- name: Retrieve PLT Cache
uses: actions/cache@v3
id: plt-cache
with:
path: backend/priv/plts
key: ${{ runner.os }}-plts-${{ hashFiles('**/mix.lock') }}
- name: Create PLTs
if: steps.plt-cache.outputs.cache-hit != 'true'
run: |
mkdir -p priv/plts
mix dialyzer --plt
- name: Run dialyzer
run: mix dialyzer --no-check