From a4ee5e713bdbd4e8a99cbee90d3ab13881cf616c Mon Sep 17 00:00:00 2001 From: Thomas Fossati Date: Thu, 26 Sep 2024 18:21:33 +0200 Subject: [PATCH] Create placeholder main and ci Signed-off-by: Thomas Fossati --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ go.mod | 3 +++ main.go | 7 +++++++ 3 files changed, 38 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 go.mod create mode 100644 main.go diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0b443f3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./... diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..d764da2 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/veraison/ratsd + +go 1.20.0 diff --git a/main.go b/main.go new file mode 100644 index 0000000..ee9e0f0 --- /dev/null +++ b/main.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("hello RATS daemon!") +}