Skip to content

Commit 0d965bd

Browse files
authored
ci: add PR ci check which runs unit tests (#5)
* chore: add MAINTAINERS file Signed-off-by: Niladri Halder <[email protected]> * feat: add Makefile Signed-off-by: Niladri Halder <[email protected]> * ci: add PR ci check which runs unit tests Signed-off-by: Niladri Halder <[email protected]> --------- Signed-off-by: Niladri Halder <[email protected]>
1 parent 93018f5 commit 0d965bd

File tree

3 files changed

+61
-0
lines changed

3 files changed

+61
-0
lines changed

.github/workflows/pull_request.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Copyright 2023 The OpenEBS Authors.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
16+
name: ci
17+
18+
on:
19+
pull_request:
20+
branches:
21+
# on pull requests to develop and release branches
22+
- 'develop'
23+
- 'v*'
24+
paths-ignore:
25+
- '**.md'
26+
- 'changelogs/**'
27+
- 'docs/**'
28+
- 'design/**'
29+
- 'LICENSE'
30+
- 'MAINTAINERS'
31+
32+
jobs:
33+
unit-test:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v4
38+
with:
39+
fetch-depth: 0
40+
41+
- name: Set up Go 1.19
42+
uses: actions/setup-go@v4
43+
with:
44+
go-version: 1.19.13
45+
46+
- name: Run unit tests
47+
run: make test

MAINTAINERS

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Official list of OpenEBS Maintainers.
2+
#
3+
# Names added to this file should be in the following format:
4+
# Individual's name,@githubhandle, Company Name
5+
#
6+
# Please keep the below list sorted in ascending order.
7+
#
8+
#Maintainers
9+
"Abhinandan Purkait",@Abhinandan-Purkait,DataCore Software
10+
"Niladri Halder",@niladrih,DataCore Software

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.PHONY: test
2+
test:
3+
go vet ./...
4+
go test ./...

0 commit comments

Comments
 (0)