-
Notifications
You must be signed in to change notification settings - Fork 41
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
1 parent
6541642
commit d73f988
Showing
7 changed files
with
123 additions
and
46 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,78 @@ | ||
name: Elixir | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
name: Build and Test | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# required by test reporter | ||
pull-requests: write | ||
checks: write | ||
issues: write | ||
statuses: write | ||
strategy: | ||
matrix: | ||
include: | ||
- otp-version: 21.3 | ||
elixir-version: 1.7.0 | ||
- otp-version: 22.2 | ||
elixir-version: 1.9.4 | ||
- otp-version: 23.2 | ||
elixir-version: 1.10.4 | ||
- otp-version: 24.3 | ||
elixir-version: 1.13.4 | ||
- otp-version: 25.0 | ||
elixir-version: 1.14.0 | ||
check-formatted: true | ||
report-coverage: true | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Elixir | ||
uses: erlef/setup-beam@988e02bfe678367a02564f65ca2e37726dc0268f | ||
with: | ||
elixir-version: ${{ matrix.elixir-version }} | ||
otp-version: ${{ matrix.otp-version }} | ||
- name: Restore dependencies cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
deps | ||
_build | ||
key: deps-${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}-elixir-${{ matrix.elixir-version }}-otp-${{ matrix.otp-version }} | ||
- name: Install and compile dependencies | ||
env: | ||
MIX_ENV: test | ||
run: mix do deps.get, deps.compile | ||
- name: Make sure code is formatted | ||
env: | ||
MIX_ENV: test | ||
if: ${{ matrix.check-formatted == true }} | ||
run: mix format --check-formatted | ||
- name: Run tests | ||
env: | ||
MIX_ENV: test | ||
run: mix test --exclude pending | ||
- name: Test Report | ||
env: | ||
MIX_ENV: test | ||
uses: dorny/test-reporter@v1 | ||
if: success() || failure() | ||
with: | ||
name: Mix Tests on Elixir ${{ matrix.elixir-version }} / OTP ${{ matrix.otp-version }} | ||
path: _build/test/lib/sage/test-junit-report.xml | ||
reporter: java-junit | ||
- name: Report code coverage | ||
env: | ||
MIX_ENV: test | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
if: ${{ matrix.report-coverage == true }} | ||
run: mix coveralls.github |
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,41 @@ | ||
name: Elixir Dialyzer | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
name: Build and run Dialyzer | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- otp-version: 25.0 | ||
elixir-version: 1.14.0 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Elixir | ||
uses: erlef/setup-beam@988e02bfe678367a02564f65ca2e37726dc0268f | ||
with: | ||
elixir-version: ${{ matrix.elixir-version }} | ||
otp-version: ${{ matrix.otp-version }} | ||
- name: Restore Dialyzer PLT cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
deps | ||
_build | ||
key: plt-${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}-elixir-${{ matrix.elixir-version }}-otp-${{ matrix.otp-version }} | ||
- name: Install and compile dependencies | ||
run: mix do deps.get, deps.compile | ||
- name: Build Dialyzer PLT | ||
run: mix dialyzer --plt | ||
- name: Type check | ||
run: mix dialyzer | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
Sage.EffectsAgent.start_link() | ||
Sage.CounterAgent.start_link() | ||
ExUnit.configure(formatters: [JUnitFormatter, ExUnit.CLIFormatter]) | ||
ExUnit.start(capture_log: true) |