Skip to content

Commit

Permalink
Merge pull request #28 from sodafoundation/anvithks-gh-ci
Browse files Browse the repository at this point in the history
[Migrate CI] Added workflow for GitHub actions CI. Deleted travis.yml.
  • Loading branch information
skdwriting committed May 20, 2021
2 parents 2e0cb71 + 834e5f6 commit 135e247
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 46 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: SODA Controller CI Build

on: [push, pull_request, workflow_dispatch]

jobs:
build:
env:
GO111MODULE: on
TARGET: amd64

strategy:
matrix:
go-version: [1.12.x, 1.13.x]
os: [ubuntu-16.04]

runs-on: ${{ matrix.os }}
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}

- name: Checkout project
uses: actions/checkout@v2

- name: Symlink source into GOPATH for controller
run: |
mkdir -p $(go env GOPATH)/src/github.com/sodafoundation/controller
sudo ln -s $(pwd) $(go env GOPATH)/src/github.com/sodafoundation/controller
- name: Install Pre-requisites
run: |
sudo apt-get update
sudo apt-get install -y build-essential gcc
sudo apt-get install -y librados-dev librbd-dev
sudo apt-get install -y lvm2 tgt open-iscsi
sudo docker pull p1c2u/openapi-spec-validator
- name: Build the binaries
run: |
make all
- name: Run CI scripts for Testing
run: ./install/CI/coverage && ./install/CI/test

- name: After success run Codecov Coverage tool.
uses: codecov/codecov-action@v1

- name: Clean up the build
run: |
make clean
45 changes: 0 additions & 45 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SODA Controller

[![Go Report Card](https://goreportcard.com/badge/github.com/sodafoundation/controller?branch=master)](https://goreportcard.com/report/github.com/sodafoundation/controller)
[![Build Status](https://travis-ci.org/sodafoundation/controller.svg?branch=master)](https://travis-ci.org/sodafoundation/controller)
[![Build Status](https://github.com/sodafoundation/controller/actions/workflows/ci.yml/badge.svg)](https://github.com/sodafoundation/controller/actions/workflows/ci.yml)
[![codecov.io](https://codecov.io/github/sodafoundation/controller/coverage.svg?branch=master)](https://codecov.io/github/sodafoundation/controller?branch=master)
[![Releases](https://img.shields.io/github/release/sodafoundation/controller/all.svg?style=flat-square)](https://github.com/sodafoundation/controller/releases)
[![LICENSE](https://img.shields.io/github/license/sodafoundation/controller.svg?style=flat-square)](https://github.com/sodafoundation/controller/blob/master/LICENSE)
Expand Down

0 comments on commit 135e247

Please sign in to comment.