hang on #194
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: Tests | |
on: [push] | |
jobs: | |
tests-on: | |
name: ${{matrix.go-version}} ${{matrix.os}} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
go-version: [1.19.x] | |
os: [macos-latest, ubuntu-latest] | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.19.x | |
- name: Configure git for private modules | |
env: | |
GOPRIVATE: "github.com" | |
REPO_TOKEN: ${{ secrets.REPO_TOKEN }} | |
run: git config --global url."https://markbates:${REPO_TOKEN}@github.com".insteadOf "https://github.com" | |
- name: Checkout Code | |
uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
- name: Test | |
env: | |
GOPRIVATE: "github.com/gopherguides" | |
REPO_TOKEN: ${{ secrets.REPO_TOKEN }} | |
run: | | |
git config --global url."https://markbates:${REPO_TOKEN}@github.com".insteadOf "https://github.com" | |
make test |