Skip to content

Merge pull request #208 from mbaertschi/expose-count-on-query-change #488

Merge pull request #208 from mbaertschi/expose-count-on-query-change

Merge pull request #208 from mbaertschi/expose-count-on-query-change #488

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Elixir CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-beam@v1.18.2
with:
version-file: .tool-versions
version-type: strict
- name: Cache dependencies
uses: actions/cache@v4
with:
path: deps
key: deps-${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: deps-${{ runner.os }}-mix-
- name: Cache compiled build
uses: actions/cache@v4
with:
path: |
_build/dev
_build/test
key: build-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}-${{ hashFiles('lib/**/*.{ex,eex}', 'config/*.exs', 'mix.exs') }}"
- name: Install dependencies
run: mix deps.get
- name: Check formatting
run: mix format --check-formatted
- name: Check unused deps
run: mix deps.unlock --check-unused
- name: Check for missed gettext extractions
run: mix gettext.extract --check-up-to-date
- name: Run Credo
run: mix credo --min-priority high
- name: Run tests
run: mix test
- name: Security audit
run: mix hex.audit
- name: Run Sobelow
run: mix sobelow --exit --threshold high