Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple CI for go #5

Merged
merged 6 commits into from
Jun 25, 2023
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
35 changes: 35 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Go CI

on:
push:
-pachs:
-'go/**'
-'!cpp/**'
branches:
- main
pull_request:
-pachs:
-'go/**'
-'!cpp/**'
branches:
- main

jobs:
test:
name: Test
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.18

- name: Install dependencies
run: cd go && go mod download

- name: Run tests
run: cd go && go test -v ./...
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
cpp/build/*
cpp/.vscode/*
cpp/.cache/*
cpp/.idea/*
go/.vscode/*
go/.idea/*
compile_commands.json
CMakeUserPresets.json
24 changes: 24 additions & 0 deletions go/internal/manifest/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,27 @@ type ManifestV2 struct {
func (m *ManifestV2) Schema() *arrow.Schema {
return m.schema
}

func (m *ManifestV2) AddScalarDataFiles(files ...*DataFile) {
m.files = append(m.files, files...)

}

func (m *ManifestV2) AddVectorDataFiles(files ...*DataFile) {
m.files = append(m.files, files...)
}

func (m *ManifestV2) ScalarSchema() *arrow.Schema {
panic("implement me")
return nil
}

func (m *ManifestV2) VectorSchema() *arrow.Schema {
panic("implement me")
return nil
}

func WriteManifestV2File(fs fs.Fs, manifest *ManifestV2) error {
panic("implement me")
return nil
}