Skip to content

Tell Git that the bare repositories used in the tests are safe #133

Tell Git that the bare repositories used in the tests are safe

Tell Git that the bare repositories used in the tests are safe #133

Workflow file for this run

on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.17'
- name: Check out code
uses: actions/checkout@v2
- name: Get full repo history
run: git fetch --prune --unshallow --tags
- name: Download dependencies
shell: bash
run: go mod download
- name: Build
shell: bash
run: |
mkdir -p bin
go build -o bin .
ls -la bin
- name: Test
shell: bash
run: go test -race -timeout 60s ./...