-
Notifications
You must be signed in to change notification settings - Fork 1
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
61db368
commit 5c2baa6
Showing
5 changed files
with
67 additions
and
64 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: nmaglev ci | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
env: | ||
OTP-VERSION: 25.2.3 | ||
REBAR3-VERSION: 3.20.0 | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- uses: erlef/setup-beam@v1 | ||
with: | ||
otp-version: ${{ env.OTP-VERSION }} | ||
rebar3-version: ${{ env.REBAR3-VERSION }} | ||
|
||
- uses: actions/[email protected] | ||
id: rebar3-cache | ||
with: | ||
path: | | ||
~/.cache/rebar3 | ||
_build | ||
key: ${{ runner.os }}-${{ env.OTP-VERSION }}-${{ env.REBAR3-VERSION }}-${{ hashFiles('rebar.lock') }} | ||
|
||
- name: Compile | ||
run: | | ||
rebar3 clean | ||
rebar3 compile | ||
- run: rebar3 check | ||
|
||
- run: rebar3 test | ||
|
||
- name: Create test summary | ||
uses: test-summary/action@v1 | ||
if: always() | ||
with: | ||
paths: '_build/test/logs/**/report.xml' |
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,15 +1,19 @@ | ||
{erl_opts, []}. | ||
{erl_opts, [ | ||
warnings_as_errors | ||
]}. | ||
|
||
{plugins, [ | ||
{erlfmt, {git, "[email protected]:nomasystems/erlfmt.git", {tag, "v1.0.0"}}} | ||
{project_plugins, [ | ||
{erlfmt, {git, "[email protected]:WhatsApp/erlfmt.git", {branch, "main"}}}, | ||
{gradualizer, {git, "[email protected]:josefs/Gradualizer.git", {branch, "master"}}} | ||
]}. | ||
{erlfmt, [write]}. | ||
|
||
{alias, [ | ||
{check, [ | ||
{fmt, "--check"}, | ||
xref, | ||
dialyzer | ||
dialyzer, | ||
gradualizer | ||
]}, | ||
{test, [ | ||
{ct, "--spec test/conf/test.spec --cover --readable true"} | ||
|
@@ -30,7 +34,6 @@ | |
{cover_opts, [verbose]}. | ||
{cover_enabled, true}. | ||
|
||
% Ignore xref warnings on public external exports | ||
{xref_ignores, [ | ||
{nmaglev, create, 1}, | ||
{nmaglev, create, 2}, | ||
|
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