From a57d79f2bb83be7c53df47defe09d8333c441c92 Mon Sep 17 00:00:00 2001 From: Ryan Winchester Date: Tue, 13 Oct 2020 16:54:33 -0700 Subject: [PATCH] Add github actions workflow --- .github/workflows/test.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..fe7a028 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,36 @@ +name: Test + +on: [push, pull_request] + +jobs: + test: + name: Test + + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-18.04] + elixir: [1.7.x, 1.8.x, 1.9.x, 1.10.x, 1.11.x] + otp: [21.x, 22.x, 23.x] + + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: Setup Elixir + uses: actions/setup-elixir@v1 + with: + elixir-version: ${{ matrix.elixir }} + otp-version: ${{ matrix.otp }} + + - name: Install dependencies + run: mix deps.get + + - name: Compile test env + run: mix compile + env: + MIX_ENV: test + + - name: Run tests + run: mix test