use go tool directive (#19) #13
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: | |
branches: | |
- master | |
pull_request: | |
name: build and test | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
emulator: | |
image: gcr.io/cloud-spanner-emulator/emulator:1.5.29 | |
ports: | |
- 9010:9010 | |
- 9020:9020 | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
go-version-file: ./go.mod | |
- run: go version | |
- run: make lint | |
- run: make setup-emulator | |
- run: | | |
mkdir -p .bin | |
go build -o .bin/spool ./cmd/spool | |
- run: make test |