name: ci on: push: branches: - main - feature/* pull_request: branches: - main jobs: build: runs-on: ubuntu-latest services: postgres: image: amazon/dynamodb-local:latest ports: - 8000:8000 steps: - name: Checkout uses: actions/checkout@v2 - name: Setup Go uses: actions/setup-go@v2 with: go-version: 1.17 - name: Configure run: | git config --global url."https://${{ secrets.GO_MODULES_TOKEN }}:x-oauth-basic@github.com/lmika".insteadOf "https://github.com/lmika" - name: Test run: | set -xue go get ./... go test ./... env: GOPRIVATE: "github:com/lmika/*"