Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,27 @@ on:
permissions: read-all

jobs:
compatibility:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version: "1.27.1"
- name: Verify the established Go floor and interpreter
run: |
test "$(go list -m -f '{{.GoVersion}}')" = "1.20"
test "$(go list -m -f '{{.Version}}' go.starlark.net)" = "v0.0.0-20260324133313-ffb3f39dd27a"

ci:
permissions:
contents: read
id-token: write
# Reusable CI lives in 1set/meta — the single source of truth for every
# Star* module's pipeline. Pinned to a commit SHA for supply-chain safety;
# bump the pin when meta's workflow changes (Dependabot github-actions can
# automate this).
uses: 1set/meta/.github/workflows/go-ci.yml@5d86667e7264f012655dab2644dfa44e09597445
uses: 1set/meta/.github/workflows/go-ci.yml@23f088bcd6dce16c93e0056d7b70b4f4434208e8
with:
go-floor: "1.20"
doc-coverage: true
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ default:

# CI bar: race + coverage profile (+ bench compile when present)
ci:
$(GOTEST) -v -race -cover -covermode=atomic -coverprofile=coverage.txt -count 1 ./...
$(GOTEST) -v -race -cover -covermode=atomic -coverprofile=coverage.txt -count 2 ./...
$(GOTEST) -v -parallel=4 -run="none" -benchtime="2s" -benchmem -bench=. ./...

test:
Expand Down
5 changes: 3 additions & 2 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1995,7 +1995,8 @@ def main():

main()
`},
{"CustomSQLFunctions", `
// Give every function and SQL call the same fresh namespace on each run.
{"CustomSQLFunctions", strings.ReplaceAll(`
load("sqlite", "connect", "register_function")

def main():
Expand Down Expand Up @@ -2114,7 +2115,7 @@ def main():
print("✓ All custom SQL function tests passed")

main()
`},
`, "EXAMPLE_", uniqueFuncName("EXAMPLE")+"_")},
{"ExistOkFeature", `
load("sqlite", "connect")

Expand Down
Loading