Skip to content

Commit 5c498f6

Browse files
authored
devops: replace Travis CI by GitHub Actions (#13)
1 parent 341af75 commit 5c498f6

File tree

4 files changed

+29
-6
lines changed

4 files changed

+29
-6
lines changed

.github/workflows/go.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Go
2+
on:
3+
push:
4+
branches: [ "main" ]
5+
pull_request:
6+
branches: [ "main" ]
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Set up Go
13+
uses: actions/setup-go@v3
14+
with:
15+
go-version: 1.18
16+
- name: Build
17+
run: go build -v ./...
18+
- name: Test
19+
run: go test -v -race -covermode atomic -coverprofile=covprofile ./...
20+
- name: Install goveralls
21+
run: go install github.com/mattn/goveralls@latest
22+
- name: Send coverage
23+
env:
24+
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
run: goveralls -coverprofile=covprofile -service=github

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Golang combinations
22

33
[![GoDoc](https://godoc.org/github.com/mxschmitt/golang-combinations?status.svg)](https://godoc.org/github.com/mxschmitt/golang-combinations)
4-
[![Build Status](https://travis-ci.com/mxschmitt/golang-combinations.svg?branch=master)](https://travis-ci.com/mxschmitt/golang-combinations)
4+
[![Go](https://github.com/mxschmitt/golang-combinations/actions/workflows/go.yml/badge.svg)](https://github.com/mxschmitt/golang-combinations/actions/workflows/go.yml)
55
[![Coverage Status](https://coveralls.io/repos/github/mxschmitt/golang-combinations/badge.svg?branch=master)](https://coveralls.io/github/mxschmitt/golang-combinations?branch=master)
66
[![Go Report Card](https://goreportcard.com/badge/github.com/mxschmitt/golang-combinations)](https://goreportcard.com/report/github.com/mxschmitt/golang-combinations)
77
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/mxschmitt/golang-combinations
2+
3+
go 1.18

0 commit comments

Comments
 (0)