forked from funbox/clean_mixer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
m.malkin
committed
Sep 22, 2023
1 parent
b2a158d
commit b305a9e
Showing
7 changed files
with
117 additions
and
61 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,109 @@ | ||
name: Elixir CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
name: Build and test | ||
runs-on: ubuntu-22.04 | ||
# https://github.com/elixir-lang/elixir/blob/master/lib/elixir/pages/compatibility-and-deprecations.md | ||
strategy: | ||
matrix: | ||
include: | ||
|
||
# Elixir 1.12 | ||
|
||
- elixir: 1.12.3 | ||
otp_release: 24.3 | ||
|
||
# Elixir 1.13 | ||
|
||
- elixir: 1.13.4 | ||
otp_release: 24.3 | ||
|
||
- elixir: 1.13.4 | ||
otp_release: 25.3 | ||
|
||
# Elixir 1.14 | ||
|
||
- elixir: 1.14.5 | ||
otp_release: 24.2.1 | ||
|
||
- elixir: 1.14.5 | ||
otp_release: 25.3 | ||
|
||
# Elixir 1.15 | ||
|
||
- elixir: 1.15.2 | ||
otp_release: 24.3 | ||
|
||
- elixir: 1.15.2 | ||
otp_release: 25.3 | ||
|
||
- elixir: 1.15.2 | ||
otp_release: 26.0 | ||
env: | ||
MIX_ENV: test | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Elixir | ||
uses: erlef/setup-beam@v1 | ||
with: | ||
elixir-version: ${{ matrix.elixir }} | ||
otp-version: ${{ matrix.otp_release }} | ||
- name: Restore dependencies cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: deps | ||
key: ${{ matrix.elixir }}-${{ matrix.otp_release }}-${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | ||
- name: Install dependencies | ||
run: mix deps.get | ||
- name: Check compilation warnings | ||
run: mix clean && mix compile --warnings-as-errors | ||
- name: Tests | ||
run: mix test | ||
|
||
code_analysis: | ||
name: Run code analysis | ||
runs-on: ubuntu-22.04 | ||
env: | ||
MIX_ENV: test | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Elixir | ||
uses: erlef/setup-beam@v1 | ||
with: | ||
elixir-version: '1.14.5' | ||
otp-version: '25.3' | ||
- name: Restore dependencies cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: deps | ||
key: ${{ matrix.elixir }}-${{ matrix.otp_release }}-${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | ||
- name: Cache PLT | ||
id: cache-plt | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
_build/test/*.plt | ||
_build/test/*.plt.hash | ||
key: plt-cache-${{ matrix.elixir }}-${{ matrix.otp_release }}-${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | ||
# Key patterns to fall back to if we don't find an exact match for `key` | ||
restore-keys: | | ||
plt-cache- | ||
- name: Install dependencies | ||
run: mix deps.get | ||
- name: Check formatting | ||
run: mix format --check-formatted --dry-run | ||
- name: Tests | ||
run: mix test | ||
- name: Dialyzer | ||
run: mix dialyzer | ||
- name: Send to coveralls | ||
run: mix coveralls.github | ||
|
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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