Rollback package.json removal #98
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
mix_test: | |
name: mix test (Elixir ${{matrix.elixir}} | Erlang/OTP ${{matrix.otp}}) | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- elixir: '1.16.1' | |
otp: '26.2.2' | |
env: | |
MIX_ENV: test | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{matrix.otp}} | |
elixir-version: ${{matrix.elixir}} | |
- name: Deps and _build cache | |
uses: actions/cache@v4 | |
id: deps-cache | |
with: | |
path: | | |
deps | |
_build | |
key: ${{ runner.os }}-${{ runner.arch }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }} | |
- name: Install Dependencies | |
if: steps.deps-cache.outputs.cache-hit != 'true' | |
run: | | |
mix local.hex --force | |
mix local.rebar --force | |
mix deps.get --only test | |
- run: mix deps.compile | |
if: steps.deps-cache.outputs.cache-hit != 'true' | |
- run: mix compile --warnings-as-errors | |
- run: mix format --check-formatted | |
- run: mix test |