From 760214cb6082d3e83b156eb6ca2a374db1a0ef5e Mon Sep 17 00:00:00 2001
From: Jeevanandam M
Date: Sun, 24 Oct 2021 22:12:53 -0700
Subject: [PATCH] Adding github actions and removing travis ci #479
---
.github/workflows/ci.yml | 41 ++++++++++++++++++++++++++++++++++++++++
.travis.yml | 18 ------------------
README.md | 2 +-
3 files changed, 42 insertions(+), 19 deletions(-)
create mode 100644 .github/workflows/ci.yml
delete mode 100644 .travis.yml
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..13b025b6
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,41 @@
+name: CI
+
+on:
+ push:
+ branches:
+ - master
+ paths-ignore:
+ - '**.md'
+ pull_request:
+ branches:
+ - master
+ paths-ignore:
+ - '**.md'
+
+ # Allows you to run this workflow manually from the Actions tab
+ workflow_dispatch:
+
+jobs:
+ build:
+ name: Build
+ strategy:
+ matrix:
+ go: [ '1.17.x', '1.16.x' ]
+ os: [ ubuntu-latest ]
+
+ runs-on: ${{ matrix.os }}
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Setup Go
+ uses: actions/setup-go@v2
+ with:
+ go-version: ${{ matrix.go }}
+
+ - name: Test
+ run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic
+
+ - name: Coverage
+ run: bash <(curl -s https://codecov.io/bash)
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index d6f15f85..00000000
--- a/.travis.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-language: go
-
-os: linux
-
-if: (branch = master) OR (type = pull_request)
-
-go: # use travis ci resource effectively, keep always latest 2 versions
- - 1.17.x
- - 1.16.x
-
-install:
- - go get -v -t ./...
-
-script:
- - go test ./... -race -coverprofile=coverage.txt -covermode=atomic
-
-after_success:
- - bash <(curl -s https://codecov.io/bash)
diff --git a/README.md b/README.md
index 2088cc38..1b2b1b4d 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
Features section describes in detail about Resty capabilities
-
+
Resty Communication Channels