-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 changed file
with
38 additions
and
0 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,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/[email protected] | ||
- uses: gleam-lang/[email protected] | ||
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 |