diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d94a69c9..6e947040 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,16 +3,39 @@ name: Test jobs: test: strategy: + fail-fast: false matrix: os: [ubuntu-latest, macos-latest] + git-version: [latest, 2.37.0] + include: + - os: ubuntu-latest + git-version: 2.20.0 runs-on: ${{ matrix.os }} steps: + - uses: actions/checkout@v2 + - name: Install old git version (macOS) + if: ${{ matrix.os == 'macos-latest' && matrix.git-version != 'latest'}} + run: | + brew tap-new mob/local-git + brew extract --version=${{ matrix.git-version }} git mob/local-git + brew install git@${{ matrix.git-version }} || brew link --overwrite git@${{ matrix.git-version }} + - name: Install old git version (ubuntu) + if: ${{ matrix.os == 'ubuntu-latest' && matrix.git-version != 'latest'}} + run: | + sudo apt-get update + sudo apt-get install gettext asciidoc docbook2x + curl https://mirrors.edge.kernel.org/pub/software/scm/git/git-${{ matrix.git-version }}.tar.gz --output git-${{ matrix.git-version }}.tar.gz + tar -zxf git-${{ matrix.git-version }}.tar.gz + cd git-${{ matrix.git-version }} + make configure + ./configure --prefix=/usr + make all info + sudo make install install-info - name: Show git version run: git version - - uses: actions/checkout@v2 - name: Use Go 1.16.x uses: actions/setup-go@v2 with: go-version: '~1.16.0' - name: Test - run: go test + run: go test -test.v