Skip to content

fix: add json serialization support for neo4j sdk types #346

fix: add json serialization support for neo4j sdk types

fix: add json serialization support for neo4j sdk types #346

Workflow file for this run

name: ci-sdk-go-build
on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
paths:
- sdk/go/**
permissions:
contents: read
jobs:
get-dirs:
if: github.event_name == 'pull_request'
name: search
runs-on: ubuntu-latest
outputs:
tools_dirs: ${{ steps.get-tools-dirs.outputs.dirs }}
examples_dirs: ${{ steps.get-examples-dirs.outputs.dirs }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Find tools
id: get-tools-dirs
run: >
echo "dirs=$(
find ./sdk/go/tools -mindepth 1 -maxdepth 1 -type d |
sed 's|^\./||' |
jq -Rsc 'split("\n")[:-1]'
)" >> ${GITHUB_OUTPUT}
- name: Find examples
id: get-examples-dirs
run: >
echo "dirs=$(
find ./sdk/go/examples -mindepth 1 -maxdepth 1 -type d |
sed 's|^\./||' |
jq -Rsc 'split("\n")[:-1]'
)" >> ${GITHUB_OUTPUT}
sdk-go-build-tools:
needs: get-dirs
if: github.event_name == 'pull_request'
name: build
runs-on: ubuntu-latest
strategy:
matrix:
dir: ${{ fromJson(needs.get-dirs.outputs.tools_dirs) }}
defaults:
run:
working-directory: ${{ matrix.dir }}
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.23.4
cache-dependency-path: ./sdk/go/go.sum
- name: Build Program
run: go build .
sdk-go-build-examples:
needs: get-dirs
if: github.event_name == 'pull_request'
name: build
runs-on: ubuntu-latest
strategy:
matrix:
dir: ${{ fromJson(needs.get-dirs.outputs.examples_dirs) }}
defaults:
run:
working-directory: ${{ matrix.dir }}
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.23.4
cache-dependency-path: "${{ matrix.dir }}/go.sum"
- name: Setup TinyGo
uses: acifani/setup-tinygo@v2
with:
tinygo-version: 0.35.0
- name: Build Program
run: ./build.sh