From 5cfb399bb9aa0bd2539f8d2cb7442e6bdc13450e Mon Sep 17 00:00:00 2001 From: Niklas Johansson Date: Thu, 16 Sep 2021 07:27:19 +0200 Subject: [PATCH] Add github action to test each PR To further improve elixir-socket, add a github action that makes sure to build and test the project against a combinations of erlang and elixir versions. --- .github/workflows/main.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..b4d2fa1 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,31 @@ +name: CI + +on: push + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + name: OTP ${{ matrix.otp }} / Elixir ${{ matrix.elixir }} + strategy: + matrix: + otp: ["22.3", "23.3", "24.0"] + elixir: ["1.10.4", "1.11.3", "1.12.3"] + env: + MIX_ENV: test + cache_version: v2 + steps: + - uses: actions/checkout@v2 + name: Checkout + + - uses: erlef/setup-elixir@v1 + name: Setup elixir + with: + otp-version: ${{matrix.otp}} + elixir-version: ${{matrix.elixir}} + + - run: mix deps.get + - run: mix compile + - run: mix test