Skip to content

Commit

Permalink
Merge pull request #41 from aritra1999/feature/ci
Browse files Browse the repository at this point in the history
Create ci.yml
  • Loading branch information
aritra1999 authored May 10, 2024
2 parents dd0634f + 6f65326 commit c473192
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
bnt:
name: Build and Test
runs-on: ubuntu-latest
strategy:
matrix:
directory: ["gordb", "scout"]
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "1.22"

- name: Build
run: cd ${{ matrix.directory }} && go build -v ./...

- name: Test Go directory
run: cd ${{ matrix.directory }} && go test -v ./...
4 changes: 4 additions & 0 deletions gordb/tests/commons/disk_io_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ func TestDiskIo(t *testing.T) {
}

var setUp = func() {
if err := os.Mkdir(storePath, 0755); err != nil && !os.IsExist(err) {
t.Errorf("%s", err)
}

if err := os.Mkdir(testStorePath, 0755); err != nil && !os.IsExist(err) {
t.Errorf("%s", err)
}
Expand Down

0 comments on commit c473192

Please sign in to comment.