plumbing: transport, refactor and define transport operations #244
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: Test | |
on: | |
push: | |
branches: | |
- "master" | |
- "v6-exp" | |
pull_request: | |
permissions: {} | |
jobs: | |
version-matrix: | |
strategy: | |
fail-fast: false | |
matrix: | |
go-version: [1.21.x, 1.22.x, 1.23.x] | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
permissions: | |
contents: read | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Configure known hosts | |
if: matrix.platform != 'ubuntu-latest' | |
run: | | |
mkdir -p ~/.ssh | |
ssh-keyscan -H github.com > ~/.ssh/known_hosts | |
- name: Set Git config | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Actions" | |
- name: Test | |
run: make test-coverage | |
- name: Test Examples | |
run: go test -timeout 45s -v -run '^TestExamples$' github.com/go-git/go-git/v5/_examples --examples |