Skip to content

Commit

Permalink
Added github action
Browse files Browse the repository at this point in the history
  • Loading branch information
asticode committed Jul 27, 2023
1 parent 3beb4f9 commit bfbbf03
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 14 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Install dependencies
run: go mod download

- name: Run tests
run: go test -race -covermode atomic -coverprofile=covprofile ./...

- name: Install goveralls
run: go install github.com/mattn/goveralls@latest

- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
run: goveralls -coverprofile=covprofile -service=github
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![GoReportCard](http://goreportcard.com/badge/github.com/asticode/go-astitodo)](http://goreportcard.com/report/github.com/asticode/go-astitodo)
[![GoDoc](https://godoc.org/github.com/asticode/go-astitodo?status.svg)](https://godoc.org/github.com/asticode/go-astitodo)
[![GoCoverage](https://cover.run/go/github.com/asticode/go-astitodo.svg)](https://cover.run/go/github.com/asticode/go-astitodo)
[![Travis](https://travis-ci.org/asticode/go-astitodo.svg?branch=master)](https://travis-ci.org/asticode/go-astitodo#)
[![Test](https://github.com/asticode/go-astitodo/actions/workflows/test.yml/badge.svg)](https://github.com/asticode/go-astitodo/actions/workflows/test.yml)
[![Coveralls](https://coveralls.io/repos/github/asticode/go-astitodo/badge.svg?branch=master)](https://coveralls.io/github/asticode/go-astitodo)

This is a Golang library and CLI to parse TODOs in your GO code.

Expand Down

0 comments on commit bfbbf03

Please sign in to comment.