Fix for "Brown Out" when trying to connect to Microsoft DevOps Repos #1529
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
on: [push, pull_request] | |
name: Test | |
permissions: | |
contents: read | |
jobs: | |
version-matrix: | |
strategy: | |
fail-fast: false | |
matrix: | |
go-version: [1.19.x, 1.20.x, 1.21.x] | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
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 "gha@example.com" | |
git config --global user.name "GitHub Actions" | |
- name: Test | |
run: make test-coverage |