forked from gootik/rebar_cmd
-
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
Showing
6 changed files
with
71 additions
and
59 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 |
---|---|---|
@@ -1,27 +1,40 @@ | ||
--- | ||
name: build | ||
name: ci/cd | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
branches: [ main, 'release/*' ] | ||
pull_request: | ||
branches: | ||
- master | ||
branches: [ main, 'release/*' ] | ||
# Build once a month, just to be sure things are still working | ||
schedule: | ||
- cron: "19 3 26 * *" | ||
|
||
jobs: | ||
ci: | ||
name: Run checks and tests over ${{matrix.otp_vsn}} and ${{matrix.os}} | ||
runs-on: ${{matrix.os}} | ||
container: | ||
image: erlang:${{matrix.otp_vsn}} | ||
|
||
builds: | ||
name: Erlang ${{ matrix.otp_version }} build | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
otp_vsn: [20.3, 21.3, 22.3, 23.0] | ||
os: [ubuntu-latest] | ||
otp_version: ['26', '25', '24', '25', '26', '27'] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: rebar3 --version | ||
- run: rebar3 as test xref | ||
- run: rebar3 as test dialyzer | ||
- run: rebar3 lint | ||
- run: rebar3 ct | ||
- run: rebar3 cover | ||
- uses: actions/checkout@v4 | ||
- uses: erlef/setup-beam@v1 | ||
with: | ||
otp-version: ${{ matrix.otp_version }} | ||
rebar3-version: '3.22' | ||
- name: Compile | ||
run: rebar3 compile | ||
- name: Xref Checks | ||
run: rebar3 xref | ||
#- name: Dialyzer | ||
# run: rebar3 dialyzer | ||
#- name: Proper Tests | ||
# run: rebar3 as test do compile, proper --regressions | ||
#- name: Run Unit Tests | ||
# run: rebar3 as test lfe ltest -tall | ||
- name: Run Common Tests | ||
run: rebar3 ct -v |
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,10 +1,10 @@ | ||
-module(rebar_cmd). | ||
-module(rebar3_oscmd). | ||
|
||
-export([init/1]). | ||
|
||
-ignore_xref([init/1]). | ||
|
||
-spec init(rebar_state:t()) -> {ok, rebar_state:t()}. | ||
init(State) -> | ||
{ok, State1} = rebar_cmd_prv:init(State), | ||
{ok, State1} = r3_oscmd_prv:init(State), | ||
{ok, State1}. |
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