From a4c4677bb048fde5780ac589e738995a645ba14d Mon Sep 17 00:00:00 2001 From: Francesco Romani Date: Fri, 17 Feb 2023 16:40:19 +0100 Subject: [PATCH] ghactions: setup basic CI bootstrap the basic CI with go vet and unit tests unit tests proper to be added in future PRs. Signed-off-by: Francesco Romani --- .github/workflows/ci-base.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ci-base.yml diff --git a/.github/workflows/ci-base.yml b/.github/workflows/ci-base.yml new file mode 100644 index 0000000..be5bdf1 --- /dev/null +++ b/.github/workflows/ci-base.yml @@ -0,0 +1,27 @@ +name: CI - base + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + code-checks: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Set up golang + uses: actions/setup-go@v2 + with: + go-version: 1.19 + + - name: Vet + run: make vet + + - name: Run unit tests + run: make unit-tests