File tree Expand file tree Collapse file tree 3 files changed +52
-46
lines changed Expand file tree Collapse file tree 3 files changed +52
-46
lines changed Original file line number Diff line number Diff line change
1
+ name : SODA Controller CI Build
2
+
3
+ on : [push, pull_request, workflow_dispatch]
4
+
5
+ jobs :
6
+ build :
7
+ env :
8
+ GO111MODULE : on
9
+ TARGET : amd64
10
+
11
+ strategy :
12
+ matrix :
13
+ go-version : [1.12.x, 1.13.x]
14
+ os : [ubuntu-16.04]
15
+
16
+ runs-on : ${{ matrix.os }}
17
+ steps :
18
+ - name : Set up Go
19
+ uses : actions/setup-go@v2
20
+ with :
21
+ go-version : ${{ matrix.go-version }}
22
+
23
+ - name : Checkout project
24
+ uses : actions/checkout@v2
25
+
26
+ - name : Symlink source into GOPATH for controller
27
+ run : |
28
+ mkdir -p $(go env GOPATH)/src/github.com/sodafoundation/controller
29
+ sudo ln -s $(pwd) $(go env GOPATH)/src/github.com/sodafoundation/controller
30
+
31
+ - name : Install Pre-requisites
32
+ run : |
33
+ sudo apt-get update
34
+ sudo apt-get install -y build-essential gcc
35
+ sudo apt-get install -y librados-dev librbd-dev
36
+ sudo apt-get install -y lvm2 tgt open-iscsi
37
+ sudo docker pull p1c2u/openapi-spec-validator
38
+
39
+ - name : Build the binaries
40
+ run : |
41
+ make all
42
+
43
+ - name : Run CI scripts for Testing
44
+ run : ./install/CI/coverage && ./install/CI/test
45
+
46
+ - name : After success run Codecov Coverage tool.
47
+ uses : codecov/codecov-action@v1
48
+
49
+ - name : Clean up the build
50
+ run : |
51
+ make clean
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# SODA Controller
2
2
3
3
[ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/sodafoundation/controller?branch=master )] ( https://goreportcard.com/report/github.com/sodafoundation/controller )
4
- [ ![ Build Status] ( https://travis-ci.org /sodafoundation/controller. svg?branch=master )] ( https://travis-ci.org /sodafoundation/controller )
4
+ [ ![ Build Status] ( https://github.com /sodafoundation/controller/actions/workflows/ci.yml/badge. svg )] ( https://github.com /sodafoundation/controller/actions/workflows/ci.yml )
5
5
[ ![ codecov.io] ( https://codecov.io/github/sodafoundation/controller/coverage.svg?branch=master )] ( https://codecov.io/github/sodafoundation/controller?branch=master )
6
6
[ ![ Releases] ( https://img.shields.io/github/release/sodafoundation/controller/all.svg?style=flat-square )] ( https://github.com/sodafoundation/controller/releases )
7
7
[ ![ LICENSE] ( https://img.shields.io/github/license/sodafoundation/controller.svg?style=flat-square )] ( https://github.com/sodafoundation/controller/blob/master/LICENSE )
You can’t perform that action at this time.
0 commit comments