From d4454c67a02d36976e25c265ef88bf81c92152fd Mon Sep 17 00:00:00 2001 From: Gonzalo <456459+grzuy@users.noreply.github.com> Date: Wed, 25 Oct 2023 11:22:00 -0300 Subject: [PATCH] ci: set up --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 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..f3d0f80 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI +on: + pull_request: + push: + branches: + - main +jobs: + main: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - elixir_version: 1.15.7 + otp_version: 26.1.2 + lint: true + - elixir_version: 1.14.5 + otp_version: 25.3.2.7 + steps: + - uses: actions/checkout@v4 + - uses: erlef/setup-beam@v1 + with: + otp-version: ${{matrix.otp_version}} + elixir-version: ${{matrix.elixir_version}} + - run: mix deps.get + - 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