From f4f6b044ead97f1d94ccb473c52618c44a0bf99c Mon Sep 17 00:00:00 2001 From: Joshua Toepfer Date: Wed, 12 Oct 2022 21:37:34 +0200 Subject: [PATCH 1/2] ci with custom git version --- .github/workflows/ci.yaml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d94a69c9..93e93dff 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -5,11 +5,30 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest] + git-version: [latest, 2.37.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-2.37.0.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: From 12b53a681a820f5581d1a962fbdbd005e4aa4afa Mon Sep 17 00:00:00 2001 From: Gregor Riegler Date: Thu, 13 Oct 2022 18:26:12 +0200 Subject: [PATCH 2/2] Test supported git versions --- .github/workflows/ci.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 93e93dff..6e947040 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,9 +3,13 @@ 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 @@ -20,7 +24,7 @@ jobs: run: | sudo apt-get update sudo apt-get install gettext asciidoc docbook2x - curl https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.37.0.tar.gz --output git-${{ matrix.git-version }}.tar.gz + 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 @@ -34,4 +38,4 @@ jobs: with: go-version: '~1.16.0' - name: Test - run: go test + run: go test -test.v