Skip to content

Commit 034244a

Browse files
authored
migrate to github actions workflow (#51)
1 parent 31e7983 commit 034244a

File tree

3 files changed

+23
-14
lines changed

3 files changed

+23
-14
lines changed

.github/workflows/ci.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on:
2+
push:
3+
branches: [ master ]
4+
pull_request:
5+
branches: [ master ]
6+
7+
jobs:
8+
test:
9+
strategy:
10+
matrix:
11+
go: [ '1.13.x', '1.14.x', '1.15.x', '1.16.x' ]
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@master
15+
- name: Set up Go
16+
uses: actions/setup-go@v1
17+
with:
18+
go-version: ${{ matrix.go }}
19+
- name: test
20+
run: go test -coverprofile=coverage.txt -covermode=atomic
21+
- name: coverage
22+
run: bash <(curl -s https://codecov.io/bash)

.travis.yml

-13
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
echo middleware to automatically generate RESTful API documentation with Swagger 2.0.
44

5-
[![Travis branch](https://img.shields.io/travis/swaggo/echo-swagger/master.svg)](https://travis-ci.com/swaggo/echo-swagger)
5+
[![Build Status](https://github.com/swaggo/echo-swagger/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/features/actions)
66
[![Codecov branch](https://img.shields.io/codecov/c/github/swaggo/echo-swagger/master.svg)](https://codecov.io/gh/swaggo/echo-swagger)
77
[![Go Report Card](https://goreportcard.com/badge/github.com/swaggo/echo-swagger)](https://goreportcard.com/report/github.com/swaggo/echo-swagger)
88

0 commit comments

Comments
 (0)