Skip to content

Add streaming support #280

Add streaming support

Add streaming support #280

name: Validate Driver
permissions:
contents: read
pull-requests: read
checks: write
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 ./...