Skip to content

Commit 5fae8c6

Browse files
committed
ci: replace travis-ci with github actions
1 parent 239ac9c commit 5fae8c6

File tree

3 files changed

+58
-33
lines changed

3 files changed

+58
-33
lines changed

.github/workflows/go.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Continues Integration
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches:
8+
- master
9+
- feature/*
10+
- bugfix/*
11+
- refactor/*
12+
13+
jobs:
14+
test:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repo
19+
uses: actions/checkout@v2
20+
21+
- name: Set up Go
22+
uses: actions/setup-go@v2
23+
with:
24+
go-version: 1.17
25+
26+
- uses: actions/cache@v2
27+
with:
28+
path: |
29+
~/.cache/go-build
30+
~/go/pkg/mod
31+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
32+
restore-keys: |
33+
${{ runner.os }}-go-
34+
35+
- name: Running Tests
36+
run: make ci_tests
37+
38+
- name: Upload coverage report
39+
uses: codecov/codecov-action@v2
40+
with:
41+
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
42+
file: ./coverage.out
43+
flags: unittests
44+
name: codecov-umbrella
45+
46+
lint:
47+
runs-on: ubuntu-latest
48+
49+
steps:
50+
- name: Checkout repo
51+
uses: actions/checkout@v2
52+
53+
- name: golangci-lint
54+
uses: golangci/golangci-lint-action@v2
55+
with:
56+
version: v1.44.0
57+
args: --timeout 5m0s

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![PkgGoDev](https://pkg.go.dev/badge/github.com/arsham/dbtools)](https://pkg.go.dev/github.com/arsham/dbtools)
44
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/arsham/dbtools)
5-
[![Build Status](https://travis-ci.org/arsham/dbtools.svg?branch=master)](https://travis-ci.org/arsham/dbtools)
5+
[![Build Status](https://github.com/arsham/dbtools/actions/workflows/go.yml/badge.svg)](https://github.com/arsham/dbtools/actions/workflows/go.yml)
66
[![Coverage Status](https://codecov.io/gh/arsham/dbtools/branch/master/graph/badge.svg)](https://codecov.io/gh/arsham/dbtools)
77
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
88
[![Go Report Card](https://goreportcard.com/badge/github.com/arsham/dbtools)](https://goreportcard.com/report/github.com/arsham/dbtools)

0 commit comments

Comments
 (0)