Skip to content

Commit

Permalink
Migrate to github actions (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
o1egl authored Mar 1, 2021
1 parent c54d38f commit 8a1a6ca
Show file tree
Hide file tree
Showing 11 changed files with 123 additions and 8,080 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: test

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

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.37.1
skip-go-installation: true
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Test
run: go test -race -timeout=60s -v -coverprofile=coverage.txt -covermode=atomic ./...
- uses: codecov/codecov-action@v1
with:
file: ./coverage.txt
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
build/
.idea
vendor
glide.lock
coverage.txt
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ build: clean $(PLATFORMS);
clean:
rm -rf build/

assets:
find ./data ! -regex ".*\.png$$" -type f | xargs rm
go-bindata -nomemcopy -nometadata -pkg bindata -o ./bindata/bindata.go data/...
goimports -w bindata/bindata.go

$(PLATFORMS):
GOOS=$(os) GOARCH=$(arch) go build -ldflags "-X main.version=${VERSION}" -o 'build/govatar$(ext)' ./govatar
zip 'build/govatar-$(os)-$(arch).$(VERSION).zip' 'build/govatar$(ext)'
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# GOvatar
[![License](http://img.shields.io/:license-mit-blue.svg)](LICENSE)
[![GoDoc](https://godoc.org/github.com/o1egl/govatar?status.svg)](https://godoc.org/github.com/o1egl/govatar)
[![Build Status](http://img.shields.io/travis/o1egl/govatar.svg?style=flat-square)](https://travis-ci.org/o1egl/govatar)
[![Coverage Status](http://img.shields.io/coveralls/o1egl/govatar.svg?style=flat-square)](https://coveralls.io/r/o1egl/govatar)
[![Actions Status](https://github.com/o1egl/govatar/workflows/build/badge.svg)](https://github.com/o1egl/govatar/actions)
[![Coverage](https://codecov.io/gh/o1egl/govatar/branch/master/graph/badge.svg)](https://codecov.io/gh/o1egl/govatar)
[![Go Report Card](https://goreportcard.com/badge/github.com/o1egl/govatar)](https://goreportcard.com/report/github.com/o1egl/govatar)

![GOvatar image](files/avatars.jpg)
Expand Down
Loading

0 comments on commit 8a1a6ca

Please sign in to comment.