Skip to content

Commit 135e247

Browse files
authored
Merge pull request #28 from sodafoundation/anvithks-gh-ci
[Migrate CI] Added workflow for GitHub actions CI. Deleted travis.yml.
2 parents 2e0cb71 + 834e5f6 commit 135e247

File tree

3 files changed

+52
-46
lines changed

3 files changed

+52
-46
lines changed

.github/workflows/ci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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

.travis.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SODA Controller
22

33
[![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)
55
[![codecov.io](https://codecov.io/github/sodafoundation/controller/coverage.svg?branch=master)](https://codecov.io/github/sodafoundation/controller?branch=master)
66
[![Releases](https://img.shields.io/github/release/sodafoundation/controller/all.svg?style=flat-square)](https://github.com/sodafoundation/controller/releases)
77
[![LICENSE](https://img.shields.io/github/license/sodafoundation/controller.svg?style=flat-square)](https://github.com/sodafoundation/controller/blob/master/LICENSE)

0 commit comments

Comments
 (0)