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-11-08 11:14:50 -05:00
|
|
|
uses: erlef/setup-beam@988e02bfe678367a02564f65ca2e37726dc0268f
|
2020-07-01 14:14:45 -04:00
|
|
|
with:
|
2021-11-08 11:14:50 -05:00
|
|
|
elixir-version: '1.12.3' # Define the elixir version [required]
|
|
|
|
|
otp-version: '24.1' # 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
|