From 6d1b8325e57ebf9a0a8814f58606b8d2b3ef5e28 Mon Sep 17 00:00:00 2001 From: ryanfkeepers Date: Wed, 27 Apr 2022 17:49:17 -0600 Subject: [PATCH] initializing directory structure and github actions --- .github/workflows/unitTests.yml | 16 ++++++++++++++++ go.mod | 3 +++ src/corso.go | 7 +++++++ src/corso_test.go | 7 +++++++ 4 files changed, 33 insertions(+) create mode 100644 .github/workflows/unitTests.yml create mode 100644 go.mod create mode 100644 src/corso.go create mode 100644 src/corso_test.go diff --git a/.github/workflows/unitTests.yml b/.github/workflows/unitTests.yml new file mode 100644 index 000000000..5a73e7aae --- /dev/null +++ b/.github/workflows/unitTests.yml @@ -0,0 +1,16 @@ +name: Unit Tests +on: [push] +jobs: + Run-All: + runs-on: ubuntu-latest + steps: + - name: Repo Code Checkout + uses: actions/checkout@v3 + + - name: Golang Setup + uses: actions/setup-go@v3 + with: + go-version: 1.18 + + - run: echo "Running {{ github.repository }} deployment unit tests." + - run: go test ./... \ No newline at end of file diff --git a/go.mod b/go.mod new file mode 100644 index 000000000..0bb7a7299 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module alcionai/corso + +go 1.18 diff --git a/src/corso.go b/src/corso.go new file mode 100644 index 000000000..6e7112d88 --- /dev/null +++ b/src/corso.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("Hello, Corso") +} diff --git a/src/corso_test.go b/src/corso_test.go new file mode 100644 index 000000000..f421004df --- /dev/null +++ b/src/corso_test.go @@ -0,0 +1,7 @@ +package main + +import "testing" + +func TestDemo(t *testing.T) { + t.Log("Hello, test.") +}