Skip to content

Bump go-git to latest, includes workaround for x/crypto ssh hostkey selection #218

Bump go-git to latest, includes workaround for x/crypto ssh hostkey selection

Bump go-git to latest, includes workaround for x/crypto ssh hostkey selection #218

Workflow file for this run

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.17.x
- 1.18.x
- 1.19.x
include:
- platform: macos-latest
go: 1.19.x
- platform: windows-latest
go: 1.19.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 }}