From e77f8caceb6b6597b9035b8d5a8372b78efa9c98 Mon Sep 17 00:00:00 2001 From: Gonzalo <456459+grzuy@users.noreply.github.com> Date: Tue, 4 Jun 2024 10:11:27 -0300 Subject: [PATCH] ci: enable (#1) --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9e53f5e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI +on: + pull_request: + push: + +jobs: + main: + runs-on: ubuntu-22.04 + strategy: + fail-fast: false + matrix: + include: + - elixir: '1.16' + otp: '26.2.5' + lint: true + steps: + - uses: actions/checkout@v4 + - uses: erlef/setup-beam@v1 + with: + otp-version: ${{ matrix.otp }} + elixir-version: ${{ matrix.elixir }} + - run: mix deps.get --check-locked + - run: mix format --check-formatted + if: ${{ matrix.lint }} + - run: mix deps.unlock --check-unused + if: ${{ matrix.lint }} + - run: mix deps.compile + - run: mix compile --warnings-as-errors + if: ${{ matrix.lint }} + - run: mix test