Skip to content

Update lint GH workflow #26

Update lint GH workflow

Update lint GH workflow #26

Workflow file for this run

name: Test Go
on: [push]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: "1.17.5"
id: go
- name: Check out code
uses: actions/checkout@v2
#- name: Configure git for private modules
# run: |
# git config --global url."https://${{ secrets.GO_MOD_USER }}:${{ secrets.GO_MOD_PASS }}@github.com".insteadOf "https://github.com"
- name: Prepare .netrc
uses: extractions/netrc@v1
with:
machine: github.com
username: ${{ secrets.GO_MOD_USER }}
password: ${{ secrets.GO_MOD_PASS }}
- name: Install Dependencies
env:
GOPROXY: https://proxy.golang.org,direct
GOPRIVATE: github.com/invopop
run: go mod download
- name: Test
run: go test -tags unit -race ./...