Skip to content

Commit 41f7966

Browse files
authored
ci: Use GitHub Actions (#66)
1 parent 8729525 commit 41f7966

File tree

4 files changed

+33
-29
lines changed

4 files changed

+33
-29
lines changed

.github/workflows/main.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Main
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Set up Go
16+
uses: actions/setup-go@v2
17+
with:
18+
go-version: 1.16
19+
20+
- name: Test
21+
run: go test -coverprofile=coverage.out ./...
22+
23+
- name: Convert coverage
24+
uses: jandelgado/[email protected]
25+
26+
- name: Upload coverage
27+
uses: coverallsapp/github-action@master
28+
with:
29+
github-token: ${{ secrets.github_token }}
30+
path-to-lcov: coverage.lcov

.travis.yml

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
[![Build Status](https://travis-ci.com/looplab/fsm.svg?branch=master)](https://travis-ci.com/looplab/fsm)
1+
[![PkgGoDev](https://pkg.go.dev/badge/github.com/looplab/fsm)](https://pkg.go.dev/github.com/looplab/fsm)
2+
![Bulid Status](https://github.com/looplab/fsm/actions/workflows/main.yml/badge.svg)
23
[![Coverage Status](https://img.shields.io/coveralls/looplab/fsm.svg)](https://coveralls.io/r/looplab/fsm)
3-
[![GoDoc](https://godoc.org/github.com/looplab/fsm?status.svg)](https://godoc.org/github.com/looplab/fsm)
44
[![Go Report Card](https://goreportcard.com/badge/looplab/fsm)](https://goreportcard.com/report/looplab/fsm)
55

66
# FSM for Go

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/looplab/fsm
22

3-
go 1.13
3+
go 1.16

0 commit comments

Comments
 (0)