Skip to content

Commit

Permalink
Matrix tests for Elixir/OTP versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jechol committed Oct 20, 2020
1 parent 047d6b0 commit 1261ac9
Showing 1 changed file with 94 additions and 12 deletions.
106 changes: 94 additions & 12 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,105 @@ name: Elixir CI

on:
push:
branches: [ master ]
branches: [ master, dev/* ]
pull_request:
branches: [ master ]

jobs:
build:
# Refactoring duplicated yaml is currently not possible
# because Github does not support anchor syntax (& and *) now.
elixir_1_11:
runs-on: ubuntu-latest
name: Test on Elixir ${{matrix.elixir}} / OTP ${{matrix.otp}}
strategy:
matrix:
elixir: [1.11.0]
otp: [21.0, 22.0, 23.0]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-elixir@v1
with:
elixir-version: ${{matrix.elixir}}
otp-version: ${{matrix.otp}}
- run: mix deps.get
- run: mix test

elixir_1_10:
runs-on: ubuntu-latest
name: Test on Elixir ${{matrix.elixir}} / OTP ${{matrix.otp}}
strategy:
matrix:
elixir: [1.10.0]
otp: [21.0, 22.0]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-elixir@v1
with:
elixir-version: ${{matrix.elixir}}
otp-version: ${{matrix.otp}}
- run: mix deps.get
- run: mix test

elixir_1_9:
runs-on: ubuntu-latest
name: Test on Elixir ${{matrix.elixir}} / OTP ${{matrix.otp}}
strategy:
matrix:
elixir: [1.9.0]
otp: [20.0, 21.0, 22.0]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-elixir@v1
with:
elixir-version: ${{matrix.elixir}}
otp-version: ${{matrix.otp}}
- run: mix deps.get
- run: mix test

elixir_1_8:
runs-on: ubuntu-latest
name: Test on Elixir ${{matrix.elixir}} / OTP ${{matrix.otp}}
strategy:
matrix:
elixir: [1.8.0]
otp: [20.0, 21.0, 22.0]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-elixir@v1
with:
elixir-version: ${{matrix.elixir}}
otp-version: ${{matrix.otp}}
- run: mix deps.get
- run: mix test

elixir_1_7:
runs-on: ubuntu-latest
name: Test on Elixir ${{matrix.elixir}} / OTP ${{matrix.otp}}
strategy:
matrix:
elixir: [1.7.0]
otp: [19.0, 20.0, 21.0, 22.0]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-elixir@v1
with:
elixir-version: ${{matrix.elixir}}
otp-version: ${{matrix.otp}}
- run: mix deps.get
- run: mix test

elixir_1_6:
runs-on: ubuntu-latest
name: Test on Elixir ${{matrix.elixir}} / OTP ${{matrix.otp}}
strategy:
matrix:
elixir: [1.6.0]
otp: [19.0, 20.0]
steps:
- uses: actions/checkout@v2
- name: Setup elixir
uses: actions/setup-elixir@v1
with:
elixir-version: '1.9.4' # Define the elixir version [required]
otp-version: '22.2' # Define the OTP version [required]
- name: Install Dependencies
run: mix deps.get
- name: Run Tests
run: mix test
- uses: actions/checkout@v2
- uses: actions/setup-elixir@v1
with:
elixir-version: ${{matrix.elixir}}
otp-version: ${{matrix.otp}}
- run: mix deps.get
- run: mix test

0 comments on commit 1261ac9

Please sign in to comment.