From c0fb449167bac7338e22908551dc0d5599a3677b Mon Sep 17 00:00:00 2001 From: Parker Selbert Date: Wed, 20 Apr 2022 13:25:10 -0500 Subject: [PATCH] Add github actions CI workflow --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..efd2ad2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: Continuous Integration + +on: push + +jobs: + ci: + env: + MIX_ENV: test + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup Elixir + uses: erlef/setup-beam@v1 + with: + otp-version: '24' + elixir-version: '1.13.3' + + - name: Install dependencies + run: mix deps.get + + - name: Check formatting + run: mix format --check-formatted + + - name: Run mix deps.compile + run: mix deps.compile + + - name: Run mix compile + run: mix compile --warnings-as-errors + + - name: Run tests + run: mix test