diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d1b3c65..8d02338 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,6 @@ on: pull_request: branches: [ master ] - jobs: build: @@ -20,7 +19,5 @@ jobs: - uses: actions-rs/toolchain@v1 with: toolchain: stable - - name: Compile - run: rebar3 compile - name: Run tests - run: rebar3 do eunit, ct + run: chmod +x ./rebar3 && ./rebar3 do eunit, ct diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000..7908d4e --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,31 @@ +name: macOS + +on: + push: + pull_request: + branches: [master] + +jobs: + macos: + strategy: + matrix: + os: [macos-11.0, macos-10.15] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - name: Install Erlang + run: | + brew install erlang@22 + - name: Run tests + run: | + export PATH="/usr/local/opt/erlang@22/bin:$(pwd)/rebar3:$PATH" + chmod +x ./rebar3 + ./rebar3 do eunit, ct + - uses: actions/upload-artifact@v2 + if: failure() + with: + name: test-results + path: _build/test/logs/ diff --git a/ct/rebar3_cargo_SUITE.erl b/ct/rebar3_cargo_SUITE.erl index da3ea47..3bebc39 100644 --- a/ct/rebar3_cargo_SUITE.erl +++ b/ct/rebar3_cargo_SUITE.erl @@ -129,7 +129,7 @@ test_release_debug(Config) -> {win32, _} -> ".exe"; {unix, _} -> "" end]), - {ok, _} = rebar_utils:sh("rebar3 as prod compile", [{cd, AppDir}, {use_stdout, true}]), + {ok, _} = rebar_utils:sh("./rebar3 as prod compile", [{cd, AppDir}, {use_stdout, true}]), {ok, "release"} = rebar_utils:sh(ReleaseExeName, [{cd, AppDir}, {use_stdout, true}]), ok. diff --git a/rebar3 b/rebar3 old mode 100644 new mode 100755