Skip to content

chore: sync OpenAPI spec from Airbyte Agents platform #128

chore: sync OpenAPI spec from Airbyte Agents platform

chore: sync OpenAPI spec from Airbyte Agents platform #128

Workflow file for this run

name: test
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Set up Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version-file: go.mod
cache: true
- name: Download dependencies
run: go mod download
- name: Verify generated schema is up to date
run: |
go generate ./...
if ! git diff --exit-code internal/spec/extracted_gen.go; then
echo "::error::internal/spec/extracted_gen.go is stale. Run 'go generate ./...' and commit the result."
exit 1
fi
- name: Run tests
run: go test ./... -v -race -coverprofile=coverage.out
- name: Upload coverage
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: coverage
path: coverage.out