Skip to content

Commit

Permalink
Add simple CI for go (#5)
Browse files Browse the repository at this point in the history
* Add unimplemented manifest method

* Change gitignore and add CI for go

* Change CI including paths
  • Loading branch information
loloxwg committed Jun 25, 2023
1 parent 0d9cc53 commit e50a308
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
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
}

0 comments on commit e50a308

Please sign in to comment.