Skip to content

Commit 0df190a

Browse files
committed
Added github action
1 parent bf157fb commit 0df190a

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+
- name: Install goveralls
28+
run: go install github.com/mattn/goveralls@latest
29+
30+
- name: Send coverage
31+
env:
32+
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
33+
run: 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-astits)](http://goreportcard.com/report/github.com/asticode/go-astits)
22
[![GoDoc](https://godoc.org/github.com/asticode/go-astits?status.svg)](https://godoc.org/github.com/asticode/go-astits)
3-
[![Travis](https://travis-ci.org/asticode/go-astits.svg?branch=master)](https://travis-ci.org/asticode/go-astits#)
3+
[![Test](https://github.com/asticode/go-astits/actions/workflows/test.yml/badge.svg)](https://github.com/asticode/go-astits/actions/workflows/test.yml)
44
[![Coveralls](https://coveralls.io/repos/github/asticode/go-astits/badge.svg?branch=master)](https://coveralls.io/github/asticode/go-astits)
55

66
This is a Golang library to natively demux and mux MPEG Transport Streams (ts) in GO.

0 commit comments

Comments
 (0)