From 2e1b59ece6b1fb61390c3e3ed17d2dcb51acc6ad Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Mon, 4 Jan 2021 09:43:52 -0700 Subject: [PATCH] move to github actions for CI --- .github/workflows/main.yml | 31 +++++++++++++++++++++++++++++++ .gitignore | 1 + .travis.yml | 22 ---------------------- rebar.lock | 6 ++++-- 4 files changed, 36 insertions(+), 24 deletions(-) create mode 100644 .github/workflows/main.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..0831922 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,31 @@ +name: Common Test + +on: + pull_request: + branches: + - 'main' + push: + branches: + - 'main' + +jobs: + build: + name: Test on OTP ${{ matrix.otp_version }} and ${{ matrix.os }} + runs-on: ${{ matrix.os }} + + strategy: + matrix: + otp_version: ['23.2.1', '22.3.4.2', '21.3.8.16', '20.3.8.21', '19.3.6.13'] + os: [ubuntu-latest] + + steps: + - uses: actions/checkout@v2 + + - uses: bajankristof/setup-erlang@master + with: + otp-version: ${{ matrix.otp_version }} + + - name: Compile + run: rebar3 compile + - name: EUnit tests + run: rebar3 eunit diff --git a/.gitignore b/.gitignore index 929000d..e8f4b5a 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ doc/edoc-info doc/erlang.png ebin/* .* +!.github _build erl_crash.dump *.pyc diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1de9b24..0000000 --- a/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: erlang -otp_release: - - 18.0 - - 17.0 - - R16B03-1 - - R16B03 - - R16B02 - - R16B01 - - R16B -script: "./rebar3 update && ./rebar3 compile && ./rebar3 eunit" -branches: - only: - - master -notifications: - email: - - core@erlware.org - irc: - channels: - - "irc.freenode.org#erlware" - use_notice: true - skip_join: true -sudo: false diff --git a/rebar.lock b/rebar.lock index f39d00d..7873d25 100644 --- a/rebar.lock +++ b/rebar.lock @@ -1,6 +1,8 @@ -{"1.1.0", +{"1.2.0", [{<<"cf">>,{pkg,<<"cf">>,<<"0.3.1">>},0}]}. [ {pkg_hash,[ - {<<"cf">>, <<"5CB902239476E141EA70A740340233782D363A31EEA8AD37049561542E6CD641">>}]} + {<<"cf">>, <<"5CB902239476E141EA70A740340233782D363A31EEA8AD37049561542E6CD641">>}]}, +{pkg_hash_ext,[ + {<<"cf">>, <<"315E8D447D3A4B02BCDBFA397AD03BBB988A6E0AA6F44D3ADD0F4E3C3BF97672">>}]} ].