Skip to content

Commit

Permalink
add action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
davec82 committed Mar 1, 2021
1 parent fe459a7 commit 5d57b5f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/elixir.yml
@@ -0,0 +1,35 @@
name: Elixir CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
elixir: [1.11, 1.10.4, 1.9, 1.8]
otp: [23.2, 22.3, 21.3]

steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-elixir@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Restore dependencies cache
uses: actions/cache@v2
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test

0 comments on commit 5d57b5f

Please sign in to comment.