Skip to content

Commit f3cedb2

Browse files
committed
Travis -> GitHub Actions
1 parent 82e5366 commit f3cedb2

File tree

3 files changed

+54
-30
lines changed

3 files changed

+54
-30
lines changed

.github/workflows/workflow.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
7+
name: Test
8+
jobs:
9+
lint:
10+
name: Lint
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out code
14+
uses: actions/checkout@v2
15+
16+
- name: Run linter
17+
uses: golangci/golangci-lint-action@v2
18+
with:
19+
version: v1.35.2
20+
21+
test:
22+
name: Test
23+
strategy:
24+
matrix:
25+
go-version: [1.14.x, 1.15.x]
26+
os: [ubuntu-latest, macos-latest, windows-latest]
27+
runs-on: ${{ matrix.os }}
28+
steps:
29+
- name: Install Go
30+
uses: actions/setup-go@v2
31+
with:
32+
go-version: ${{ matrix.go-version }}
33+
34+
- name: Checkout code
35+
uses: actions/checkout@v2
36+
37+
- name: Restore cache
38+
uses: actions/cache@v2
39+
with:
40+
path: ~/go/pkg/mod
41+
key: ${{ runner.os }}-v1-go-${{ hashFiles('**/go.sum') }}
42+
restore-keys: |
43+
${{ runner.os }}-v1-go-
44+
45+
- name: Run tests
46+
run: go test -race -covermode=atomic -coverprofile=coverage.out ./...
47+
48+
- name: Upload coverage report to Coveralls
49+
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.15.x'
50+
uses: shogo82148/actions-goveralls@v1
51+
with:
52+
path-to-profile: coverage.out

.travis.yml

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Library webhooks
22
================
33
<img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v6/logo.png">![Project status](https://img.shields.io/badge/version-6.0.0-green.svg)
4-
[![Build Status](https://travis-ci.org/go-playground/webhooks.svg?branch=v6)](https://travis-ci.org/go-playground/webhooks)
5-
[![Coverage Status](https://coveralls.io/repos/go-playground/webhooks/badge.svg?branch=v6&service=github)](https://coveralls.io/github/go-playground/webhooks?branch=v6)
4+
![Test](https://github.com/go-playground/webhooks/workflows/Test/badge.svg?branch=master)
5+
[![Coverage Status](https://coveralls.io/repos/go-playground/webhooks/badge.svg?branch=master&service=github)](https://coveralls.io/github/go-playground/webhooks?branch=master)
66
[![Go Report Card](https://goreportcard.com/badge/go-playground/webhooks)](https://goreportcard.com/report/go-playground/webhooks)
77
[![GoDoc](https://godoc.org/github.com/go-playground/webhooks/v6?status.svg)](https://godoc.org/github.com/go-playground/webhooks/v6)
88
![License](https://img.shields.io/dub/l/vibe-d.svg)

0 commit comments

Comments
 (0)