Skip to content

ENG-6204: Implement token based streaming #256

ENG-6204: Implement token based streaming

ENG-6204: Implement token based streaming #256

name: Validate Driver
on:
pull_request:
paths:
- ".github/workflows/pr-validate-driver.yml"
- "**.go"
- "go.mod"
- "go.sum"
jobs:
validate:
runs-on: ubuntu-latest
services:
core:
image: fauna/faunadb:latest
ports:
- 8443:8443
strategy:
matrix:
go: [ '1.22', '1.21', '1.20', '1.19' ]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
cache: true
- name: Install tools
run: |
go install golang.org/x/tools/cmd/goimports@latest
- name: Fmt
run: |
LINE_COUNT=$(goimports -l . | wc -l)
if [ "$LINE_COUNT" -gt 0 ]; then
goimports -d .
exit 1
fi
- name: Vet
run: go vet ./...
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
- name: Test
run: go test -v ./...