2019-08-06 16:37:30 -07:00
|
|
|
name: Elixir CI
|
2019-07-29 09:38:23 -07:00
|
|
|
|
2020-07-01 14:13:53 -04:00
|
|
|
on:
|
|
|
|
|
push:
|
2020-07-13 12:12:41 -07:00
|
|
|
branches: [ $default-branch ]
|
2020-07-01 14:13:53 -04:00
|
|
|
pull_request:
|
2020-07-13 12:12:41 -07:00
|
|
|
branches: [ $default-branch ]
|
|
|
|
|
|
2019-07-29 09:38:23 -07:00
|
|
|
jobs:
|
|
|
|
|
build:
|
2019-08-06 16:37:30 -07:00
|
|
|
|
2020-07-01 17:06:09 -04:00
|
|
|
name: Build and test
|
2019-07-29 09:38:23 -07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
2019-08-05 12:36:53 -04:00
|
|
|
steps:
|
2020-07-01 14:13:53 -04:00
|
|
|
- uses: actions/checkout@v2
|
2020-07-01 14:14:45 -04:00
|
|
|
- name: Set up Elixir
|
2021-03-05 10:04:52 -05:00
|
|
|
uses: erlef/setup-elixir@885971a72ed1f9240973bd92ab57af8c1aa68f24
|
2020-07-01 14:14:45 -04:00
|
|
|
with:
|
|
|
|
|
elixir-version: '1.10.3' # Define the elixir version [required]
|
|
|
|
|
otp-version: '22.3' # Define the OTP version [required]
|
2020-07-01 17:06:09 -04:00
|
|
|
- name: Restore dependencies cache
|
|
|
|
|
uses: actions/cache@v2
|
2019-11-07 12:34:15 -06:00
|
|
|
with:
|
|
|
|
|
path: deps
|
2020-07-01 17:06:09 -04:00
|
|
|
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
|
|
|
|
|
restore-keys: ${{ runner.os }}-mix-
|
2020-07-01 14:13:53 -04:00
|
|
|
- name: Install dependencies
|
|
|
|
|
run: mix deps.get
|
2020-07-01 14:09:21 -04:00
|
|
|
- name: Run tests
|
2020-07-01 14:14:45 -04:00
|
|
|
run: mix test
|