From db90feea758acb844efd2f175115f9e2272d08f9 Mon Sep 17 00:00:00 2001 From: Keijo Raamat Date: Wed, 29 Sep 2021 16:06:14 +0300 Subject: [PATCH] Revert "Change setup" This reverts commit 9ddf7a2a9a5f622733fd9eb3addd488f957b0fa8. --- .github/workflows/erlang.yml | 50 +++++++++++++----------------------- 1 file changed, 18 insertions(+), 32 deletions(-) diff --git a/.github/workflows/erlang.yml b/.github/workflows/erlang.yml index 37cddcb..3ff2bb5 100644 --- a/.github/workflows/erlang.yml +++ b/.github/workflows/erlang.yml @@ -5,40 +5,26 @@ on: [push] jobs: test: runs-on: ubuntu-latest - # name: OTP ${{matrix.otp}} - # strategy: - # matrix: - # otp: [21.3.8.17] - # 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: OTP ${{matrix.otp}} + strategy: + matrix: + otp: [21.3.8.17] + ruby: [2.6.3] steps: - - name: setup + - 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: Get rebar3 run: | - git clone https://github.com/asdf-vm/asdf.git "$HOME"/.asdf && \ - echo '. $HOME/.asdf/asdf.sh' >> "$HOME"/.bashrc && \ - echo '. $HOME/.asdf/asdf.sh' >> "$HOME"/.profile - export PATH="${PATH}:/root/.asdf/shims:/root/.asdf/bin" - - asdf plugin-add erlang - asdf install - asdf global erlang $(grep erlang .tool-versions | cut -d' ' -f2) - asdf plugin-add ruby - asdf plugin-add rebar - asdf install - - # - name: Get rebar3 - # run: | - # git clone https://github.com/erlang/rebar3.git - # cd rebar3 - # ./bootstrap + git clone https://github.com/erlang/rebar3.git + cd rebar3 + ./bootstrap - name: Rebar version run: |