-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump minimal version of elixir, to currently supported one
- Loading branch information
Showing
3 changed files
with
53 additions
and
74 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 |
---|---|---|
|
@@ -15,44 +15,43 @@ jobs: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | ||
strategy: | ||
matrix: | ||
elixir: ['1.12.3'] | ||
otp: ['24.3.4'] | ||
elixir: ['1.16'] | ||
otp: ['26.2'] | ||
|
||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout Github repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup elixir & erlang environment | ||
uses: erlef/setup-beam@v1 | ||
with: | ||
elixir-version: ${{matrix.elixir}} # Define the elixir version [required] | ||
otp-version: ${{matrix.otp}} # Define the OTP version [required] | ||
experimental-otp: true # More info https://github.com/actions/setup-elixir/issues/31 | ||
|
||
- name: Retrieve Cached Dependencies | ||
uses: actions/cache@v2 | ||
id: mix-cache | ||
with: | ||
path: | | ||
deps | ||
_build | ||
priv/plts | ||
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }} | ||
|
||
- name: Install Dependencies | ||
if: steps.mix-cache.outputs.cache-hit != 'true' | ||
run: | | ||
mkdir -p priv/plts | ||
mix local.rebar --force | ||
mix local.hex --force | ||
mix deps.get | ||
mix deps.compile | ||
mix dialyzer --plt | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout Github repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup elixir & erlang environment | ||
uses: erlef/setup-beam@v1 | ||
with: | ||
elixir-version: ${{matrix.elixir}} # Define the elixir version [required] | ||
otp-version: ${{matrix.otp}} # Define the OTP version [required] | ||
|
||
- name: Retrieve Cached Dependencies | ||
uses: actions/cache@v2 | ||
id: mix-cache | ||
with: | ||
path: | | ||
deps | ||
_build | ||
priv/plts | ||
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }} | ||
|
||
- name: Install Dependencies | ||
if: steps.mix-cache.outputs.cache-hit != 'true' | ||
run: | | ||
mkdir -p priv/plts | ||
mix local.rebar --force | ||
mix local.hex --force | ||
mix deps.get | ||
mix deps.compile | ||
mix dialyzer --plt | ||
static_code_analysis: | ||
name: Static Code Analysis | ||
|
@@ -64,8 +63,8 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
elixir: ['1.12.3'] | ||
otp: ['24.3.4'] | ||
elixir: ['1.16'] | ||
otp: ['26.2'] | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
|
@@ -83,7 +82,6 @@ jobs: | |
with: | ||
elixir-version: ${{matrix.elixir}} # Define the elixir version [required] | ||
otp-version: ${{matrix.otp}} # Define the OTP version [required] | ||
experimental-otp: true # More info https://github.com/actions/setup-elixir/issues/31 | ||
|
||
- name: Retrieve Cached Dependencies | ||
uses: actions/cache@v2 | ||
|
@@ -105,4 +103,4 @@ jobs: | |
run: mix credo | ||
|
||
- name: Run Dialyzer | ||
run: mix dialyzer --no-check | ||
run: mix dialyzer --no-check |
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
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