From 034244ac359fc3fdf3769c0d0782de0241e83e9e Mon Sep 17 00:00:00 2001 From: Bogdan U Date: Thu, 23 Sep 2021 22:32:03 +0300 Subject: [PATCH] migrate to github actions workflow (#51) --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ .travis.yml | 13 ------------- README.md | 2 +- 3 files changed, 23 insertions(+), 14 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 0000000..d53be4f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + strategy: + matrix: + go: [ '1.13.x', '1.14.x', '1.15.x', '1.16.x' ] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Set up Go + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go }} + - name: test + run: go test -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 e05700b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: go - -go: - - 1.13.x - - 1.14.x - - 1.15.x - - 1.16.x - -script: - - go test -coverprofile=coverage.txt -covermode=atomic - -after_success: - - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index 34e9039..e660522 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ echo middleware to automatically generate RESTful API documentation with Swagger 2.0. -[![Travis branch](https://img.shields.io/travis/swaggo/echo-swagger/master.svg)](https://travis-ci.com/swaggo/echo-swagger) +[![Build Status](https://github.com/swaggo/echo-swagger/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/features/actions) [![Codecov branch](https://img.shields.io/codecov/c/github/swaggo/echo-swagger/master.svg)](https://codecov.io/gh/swaggo/echo-swagger) [![Go Report Card](https://goreportcard.com/badge/github.com/swaggo/echo-swagger)](https://goreportcard.com/report/github.com/swaggo/echo-swagger)