---
name: build
on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master
jobs:
  ci:
    name: Run checks and tests over ${{matrix.otp_vsn}} and ${{matrix.os}}
    runs-on: ${{matrix.os}}
    container:
      image: erlang:${{matrix.otp_vsn}}
    strategy:
      matrix:
        otp_vsn: ["21.3", "22.3", "23.2"]
        os: [ubuntu-latest]
    steps:
      - name: Install Git 2.18
        shell: bash
        run: |
          apt-get update
          apt-get -y install tcl tcl-dev gettext
          cd /usr/src/
          wget https://github.com/git/git/archive/v2.18.0.tar.gz -O git.tar.gz
          tar -xf git.tar.gz
          cd git-*
          make prefix=/usr/local all
          make prefix=/usr/local install
          cd $HOME
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - name: Environment versions
        shell: bash
        run: |
          rebar3 --version
          erl -version
      - shell: bash
        run: rebar3 dialyzer
      - shell: bash
        run: rebar3 ct --suite=git_SUITE
      - shell: bash
        run: rebar3 cover
      - shell: bash
        run: rebar3 escriptize && _build/default/bin/elvis rock

---
name: build
on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master
jobs:
  ci:
    name: Run checks and tests over ${{matrix.otp_vsn}} and ${{matrix.os}}
    runs-on: ${{matrix.os}}
    strategy:
      matrix:
        otp_vsn: ["21", "22", "23"]
        os: [ubuntu-latest]
    steps:
      - name: Install Git 2.18
        shell: bash
        run: |
          sudo apt-get update
          sudo apt-get -y install tcl tcl-dev gettext libcurl4-openssl-dev
          cd /usr/src/
          sudo wget https://github.com/git/git/archive/v2.18.0.tar.gz -O git.tar.gz
          sudo tar -xf git.tar.gz
          cd git-*
          sudo make prefix=/usr/local all
          sudo make prefix=/usr/local install
          cd $HOME
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - uses: erlef/setup-beam@v1.7.0
        with:
          otp-version: ${{matrix.otp_vsn}}
          rebar3-version: '3.14'
      - shell: bash
        run: rebar3 dialyzer
      - shell: bash
        run: rebar3 ct --suite=git_SUITE
      - shell: bash
        run: rebar3 cover
      - shell: bash
        run: rebar3 escriptize && _build/default/bin/elvis rock

Move to a GitHub action (instead of container-based) CI approach
Move to a GitHub action (instead of container-based) CI approach

Also, that GitHub action is now the "official" action for Erlang+rebar3 CI, as per EEF
