Skip to content

Commit 04eba85

Browse files
committed
Added github action
1 parent 95f3a94 commit 04eba85

File tree

3 files changed

+34
-16
lines changed

3 files changed

+34
-16
lines changed

.github/workflows/test.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v4
18+
with:
19+
go-version: '1.20'
20+
21+
- name: Install dependencies
22+
run: go mod download
23+
24+
- name: Run tests
25+
run: go test -race -covermode atomic -coverprofile=covprofile ./...
26+
27+
- if: github.event_name != 'pull_request'
28+
name: Send coverage
29+
env:
30+
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
31+
run: |
32+
go install github.com/mattn/goveralls@latest
33+
goveralls -coverprofile=covprofile -service=github

.travis.yml

-15
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![GoReportCard](http://goreportcard.com/badge/github.com/asticode/go-astisub)](http://goreportcard.com/report/github.com/asticode/go-astisub)
22
[![GoDoc](https://godoc.org/github.com/asticode/go-astisub?status.svg)](https://godoc.org/github.com/asticode/go-astisub)
3-
[![Travis](https://travis-ci.com/asticode/go-astisub.svg?branch=master)](https://travis-ci.com/asticode/go-astisub#)
3+
[![Test](https://github.com/asticode/go-astisub/actions/workflows/test.yml/badge.svg)](https://github.com/asticode/go-astisub/actions/workflows/test.yml)
44
[![Coveralls](https://coveralls.io/repos/github/asticode/go-astisub/badge.svg?branch=master)](https://coveralls.io/github/asticode/go-astisub)
55

66
This is a Golang library to manipulate subtitles.

0 commit comments

Comments
 (0)