From 010980988ebcb680dbb3acf17c20bdc5ce3cce1e Mon Sep 17 00:00:00 2001 From: Daniele Martinoli Date: Wed, 16 Oct 2024 16:36:26 +0200 Subject: [PATCH 1/3] an action to test operator at PR time Signed-off-by: Daniele Martinoli --- .github/workflows/operator_pr.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/operator_pr.yml diff --git a/.github/workflows/operator_pr.yml b/.github/workflows/operator_pr.yml new file mode 100644 index 0000000000..f1d88af60e --- /dev/null +++ b/.github/workflows/operator_pr.yml @@ -0,0 +1,20 @@ +name: operator-pr + +on: [pull_request] +jobs: + operator-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.21.x + - name: Unit tests + run: | + cd infra/feast-operator/ + pwd + go version + make test + - name: After code formatting, check for uncommitted differences + run: git diff --exit-code infra/feast-operator From 47ffd6cf056ea5a29f87ff39774354f387d4d648 Mon Sep 17 00:00:00 2001 From: Daniele Martinoli Date: Wed, 16 Oct 2024 16:42:37 +0200 Subject: [PATCH 2/3] Renamed step Signed-off-by: Daniele Martinoli --- .github/workflows/operator_pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/operator_pr.yml b/.github/workflows/operator_pr.yml index f1d88af60e..b190cbb8a3 100644 --- a/.github/workflows/operator_pr.yml +++ b/.github/workflows/operator_pr.yml @@ -10,7 +10,7 @@ jobs: uses: actions/setup-go@v2 with: go-version: 1.21.x - - name: Unit tests + - name: Operator tests run: | cd infra/feast-operator/ pwd From 3dae6b7df74f58f06eecf6f85d6fe8bb3f3a8b26 Mon Sep 17 00:00:00 2001 From: Daniele Martinoli Date: Wed, 16 Oct 2024 16:43:25 +0200 Subject: [PATCH 3/3] Removed debugging code Signed-off-by: Daniele Martinoli --- .github/workflows/operator_pr.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/operator_pr.yml b/.github/workflows/operator_pr.yml index b190cbb8a3..e4d371b945 100644 --- a/.github/workflows/operator_pr.yml +++ b/.github/workflows/operator_pr.yml @@ -13,8 +13,6 @@ jobs: - name: Operator tests run: | cd infra/feast-operator/ - pwd - go version make test - name: After code formatting, check for uncommitted differences run: git diff --exit-code infra/feast-operator