Bump go-git to latest, includes workaround for x/crypto ssh hostkey selection #220
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19.x | |
- name: Lint | |
run: make -k lint | |
test: | |
strategy: | |
matrix: | |
platform: | |
- ubuntu-latest | |
go: | |
- 1.19.x | |
- 1.20.x | |
- 1.21.x | |
- 1.22.x | |
include: | |
- platform: macos-latest | |
go: 1.22.x | |
- platform: windows-latest | |
go: 1.22.x | |
name: Test (Go ${{ matrix.go }} on ${{ matrix.platform }}) | |
runs-on: ${{ matrix.platform }} | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
check-latest: true | |
- name: Test | |
run: make -k test | |
env: | |
LINT_GO_VERSION: 1.19 | |
- name: Publish test coverage | |
if: "matrix.platform == 'ubuntu-latest' && matrix.go == '1.19.x'" | |
run: | | |
# Fetch more commits for coverage diff. | |
commits=${{ github.event.pull_request.commits }} | |
if [[ -n "$commits" ]]; then | |
# Prepare enough depth for diffs with master | |
git fetch --depth="$(( commits + 1 ))" | |
fi | |
make test-publish-coverage | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |