From fd3e551aae3d55fcaef541f4b131ac68bd4305ee Mon Sep 17 00:00:00 2001 From: Alex Sherman Date: Thu, 21 Jan 2021 13:32:50 +0500 Subject: [PATCH 1/2] Add Github Actions support --- .github/workflows/erlang.yml | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/erlang.yml diff --git a/.github/workflows/erlang.yml b/.github/workflows/erlang.yml new file mode 100644 index 0000000..98f6f16 --- /dev/null +++ b/.github/workflows/erlang.yml @@ -0,0 +1,38 @@ +name: Erlang CI + +on: [push] + +jobs: + test: + runs-on: ubuntu-latest + name: OTP ${{matrix.otp}} + strategy: + matrix: + otp: [21.3.8] + ruby: [2.6.3] + steps: + - uses: actions/checkout@v2.0.0 + - uses: gleam-lang/setup-erlang@v1.1.2 + with: + otp-version: ${{matrix.otp}} + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + + - name: Install rebar dependencies + run: rebar3 as test get-deps + + - name: Integrated Ruby app setup + run: | + rebar3 as test get-deps + /bin/bash -l -c "cd apps/epp_proxy/priv/test_backend_app && bundle install" + + - name: Run tests + run: | + /bin/bash -l -c "cd apps/epp_proxy/priv/test_backend_app && bundle exec rackup --pid pidfile -D" + rebar3 as test compile + DEBUG=1 rebar3 ct --sys_config config/test.config --readable=false --cover --verbose=true + rebar3 cover --verbose + +# - run: rebar3 eunit \ No newline at end of file From b8deb7db4537612f305bdbcd74ac5c7d49a25668 Mon Sep 17 00:00:00 2001 From: Alex Sherman Date: Thu, 21 Jan 2021 13:37:01 +0500 Subject: [PATCH 2/2] Remove Travis support --- .travis.yml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 494dbc1..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: erlang - -otp_release: - - 21.3.8 - -ruby: - - 2.6.3 - -install: - - "rebar3 as test get-deps" - - "/bin/bash -l -c \"cd apps/epp_proxy/priv/test_backend_app && bundle install\"" - -script: - - "/bin/bash -l -c \"cd apps/epp_proxy/priv/test_backend_app && bundle exec rackup --pid pidfile -D\"" - - "rebar3 as test compile" - - "DEBUG=1 rebar3 ct --sys_config config/test.config --readable=false --cover --verbose=true" - - "rebar3 cover --verbose"