From 523e3fba285e10a907d9907b46f87a4d63ecee29 Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Wed, 15 Jan 2025 08:51:23 +0100 Subject: [PATCH] Create go.yml --- .github/workflows/go.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 000000000..9cc62a15e --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,31 @@ +# 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.23' + + - name: Test + run: make test + + - name: Generate + run: make ci-go-generate + + - name: Build + run: make -C opencloud build