diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2020-03-16 11:45:20 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2020-03-16 11:45:20 +0100 |
commit | 428e28daac4dfab685a78788b925678f45167ab2 (patch) | |
tree | 2efe28ae8fa9d9fb34db88707dd6ae02c941cabe /.github | |
parent | 40222ee8c6cc8d35bb19f25638847d05c28f6608 (diff) | |
download | go-git-428e28daac4dfab685a78788b925678f45167ab2.tar.gz |
ci: split jobs
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/git.yml | 40 | ||||
-rw-r--r-- | .github/workflows/test.yml | 38 |
2 files changed, 40 insertions, 38 deletions
diff --git a/.github/workflows/git.yml b/.github/workflows/git.yml new file mode 100644 index 0000000..73a916b --- /dev/null +++ b/.github/workflows/git.yml @@ -0,0 +1,40 @@ +on: [push, pull_request] +name: Git Compatibility +jobs: + test: + strategy: + fail-fast: false + matrix: + git: [[master, ubuntu-latest], [v2.11.0, ubuntu-latest]] + + runs-on: ${{ matrix.git[1] }} + env: + GIT_VERSION: ${{ matrix.git[0] }} + GIT_DIST_PATH: .git-dist/${{ matrix.git[0] }} + + steps: + - name: Install Go + uses: actions/setup-go@v1 + with: + go-version: 1.14.x + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install build dependencies + run: sudo apt-get install gettext + + - name: Git Build + run: make build-git + + - name: Set Git config + run: | + git config --global user.email "gha@example.com" + git config --global user.name "GitHub Actions" + export PATH=$GIT_DIST_PATH:$PATH + + + - name: Test + env: + GIT_EXEC_PATH: ${{ env.GIT_DIST_PATH }} + run: make test-coverage diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 16640a6..2aece2f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,41 +45,3 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} path-to-lcov: coverage.lcov - - git-matrix: - strategy: - fail-fast: false - matrix: - git: [[master, ubuntu-latest], [v2.11.0, ubuntu-latest]] - - runs-on: ${{ matrix.git[1] }} - env: - GIT_VERSION: ${{ matrix.git[0] }} - GIT_DIST_PATH: .git-dist/${{ matrix.git[0] }} - - steps: - - name: Install Go - uses: actions/setup-go@v1 - with: - go-version: 1.14.x - - - name: Checkout code - uses: actions/checkout@v2 - - - name: Install build dependencies - run: sudo apt-get install gettext - - - name: Git Build - run: make build-git - - - name: Set Git config - run: | - git config --global user.email "gha@example.com" - git config --global user.name "GitHub Actions" - export PATH=$GIT_DIST_PATH:$PATH - - - - name: Test - env: - GIT_EXEC_PATH: ${{ env.GIT_DIST_PATH }} - run: make test-coverage |