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!") +}