-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create elixir.yml * use matrix * fix version * exclude latest elixir with old otp elixir 1.10+ requires otp 21+ * exclude versions that are doomed to fail * forget about it * Delete .travis.yml * update workflow * add caching * fix caching
- Loading branch information
1 parent
6fcdc11
commit 4208e76
Showing
2 changed files
with
34 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Elixir CI | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
elixir: [1.10.4, 1.9, 1.8] | ||
otp: [23.1, 22.3, 21.3] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup elixir | ||
uses: actions/setup-elixir@v1 | ||
with: | ||
elixir-version: ${{ matrix.elixir }} | ||
otp-version: ${{ matrix.otp }} | ||
|
||
- name: Restore dependencies cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
deps | ||
_build | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +0,0 @@ | ||
language: elixir | ||
sudo: false | ||
cache: | ||
directories: | ||
- _build | ||
- deps | ||
branches: | ||
only: | ||
- master | ||
elixir: '1.10' | ||
otp_release: '23.1' | ||
stages: | ||
- test | ||
- name: inch | ||
if: type = push | ||
jobs: | ||
include: | ||
- stage: test | ||
|
||
- opt_release: '22.3' | ||
elixir: '1.9' | ||
|
||
- otp_release: '21.3' | ||
elixir: '1.8' | ||
|
||
- stage: inch | ||
script: | ||
- mix deps.get --only docs | ||
- MIX_ENV=docs mix inch.report | ||
|
||
notifications: | ||
recipients: | ||
- steve@stevedomin.com | ||