From 5d0ed890ed40e7a722f98594594ac4429dacb225 Mon Sep 17 00:00:00 2001 From: David Ortiz Date: Mon, 11 Jan 2021 12:03:01 +0100 Subject: [PATCH 1/2] github-actions: run make test --- .github/workflows/go.yml | 19 +++++++++++++++++++ 1 file changed, 19 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 00000000..b3bf9043 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,19 @@ +name: Limitador-Operator + +on: + push: + branches: + - '*' + pull_request: + branches: + - '*' + +jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + - name: Run the tests + run: make test From f7cb19536b5db7a9bbc67584f6b6871e75e19a9f Mon Sep 17 00:00:00 2001 From: David Ortiz Date: Mon, 11 Jan 2021 12:03:32 +0100 Subject: [PATCH 2/2] Makefile: set SHELL The "source" command in the test target does not work with /bin/sh. --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index cdf9c88d..c3947002 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +# The "source" command used in the "test" target does not work with /bin/sh. +SHELL := /bin/bash + # Current Operator version VERSION ?= 0.0.1 # Default bundle image tag