From d8b2dde052c2bd5bba405240f2e1e68aa762894d Mon Sep 17 00:00:00 2001 From: Niladri Halder Date: Fri, 17 Nov 2023 14:54:13 +0530 Subject: [PATCH 1/3] chore: add MAINTAINERS file Signed-off-by: Niladri Halder --- MAINTAINERS | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 MAINTAINERS diff --git a/MAINTAINERS b/MAINTAINERS new file mode 100644 index 0000000..68c69d3 --- /dev/null +++ b/MAINTAINERS @@ -0,0 +1,10 @@ +# Official list of OpenEBS Maintainers. +# +# Names added to this file should be in the following format: +# Individual's name,@githubhandle, Company Name +# +# Please keep the below list sorted in ascending order. +# +#Maintainers +"Abhinandan Purkait",@Abhinandan-Purkait,DataCore Software +"Niladri Halder",@niladrih,DataCore Software \ No newline at end of file From 2ee5373f417205f7113dd0ca90134236d363c149 Mon Sep 17 00:00:00 2001 From: Niladri Halder Date: Fri, 17 Nov 2023 14:54:37 +0530 Subject: [PATCH 2/3] feat: add Makefile Signed-off-by: Niladri Halder --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2d53126 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +.PHONY: test +test: + go vet ./... + go test ./... \ No newline at end of file From 013273b631312ab50216cc4c33c3e0227ed45f8b Mon Sep 17 00:00:00 2001 From: Niladri Halder Date: Fri, 17 Nov 2023 14:54:57 +0530 Subject: [PATCH 3/3] ci: add PR ci check which runs unit tests Signed-off-by: Niladri Halder --- .github/workflows/pull_request.yml | 47 ++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/pull_request.yml diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..74d5291 --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,47 @@ +# Copyright 2023 The OpenEBS Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +name: ci + +on: + pull_request: + branches: + # on pull requests to develop and release branches + - 'develop' + - 'v*' + paths-ignore: + - '**.md' + - 'changelogs/**' + - 'docs/**' + - 'design/**' + - 'LICENSE' + - 'MAINTAINERS' + +jobs: + unit-test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up Go 1.19 + uses: actions/setup-go@v4 + with: + go-version: 1.19.13 + + - name: Run unit tests + run: make test \ No newline at end of file