Skip to content

Commit

Permalink
chore: add 'tests' action
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-yurchenko committed Dec 31, 2019
1 parent e85fbe4 commit 10cebad
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 12 deletions.
11 changes: 0 additions & 11 deletions .circleci/config.yml

This file was deleted.

58 changes: 58 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: tests
on:
pull_request:
branches:
- master
- dev

jobs:
lint:
name: Linter
runs-on: ubuntu-latest
steps:
- name: Init
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go

- name: Checkout
uses: actions/checkout@v1

- name: Install Dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Lint
run: |
export PATH=$PATH:$(go env GOPATH)/bin
go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
golangci-lint run ./...
test:
name: Unit Test
runs-on: ubuntu-latest
steps:
- name: Init
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go

- name: Checkout
uses: actions/checkout@v1

- name: Install Dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Test
run: go test $(go list ./... | grep -v vendor | grep -v mocks) -race -coverprofile=coverage.txt -covermode=atomic
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [Unreleased]
### Changed
- Replace CircleCI with GitHub Actions as a Continuous Integration system

## [2.0.2] - 2019-12-29
### Added
- CircleCI integrated as a Continuous Integration system
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![Release](https://img.shields.io/github/v/release/anton-yurchenko/git-release)](https://github.com/anton-yurchenko/git-release/releases/latest)
[![codecov](https://codecov.io/gh/anton-yurchenko/git-release/branch/master/graph/badge.svg)](https://codecov.io/gh/anton-yurchenko/git-release)
[![Go Report Card](https://goreportcard.com/badge/github.com/anton-yurchenko/git-release)](https://goreportcard.com/report/github.com/anton-yurchenko/git-release)
[![CircleCI](https://circleci.com/gh/anton-yurchenko/git-release/tree/master.svg?style=svg)](https://circleci.com/gh/anton-yurchenko/git-release/tree/master)
[![Tests](https://github.com/anton-yurchenko/git-release/workflows/tests/badge.svg)](https://github.com/anton-yurchenko/git-release/actions)
[![Docker Build](https://img.shields.io/docker/cloud/build/antonyurchenko/git-release)](https://hub.docker.com/r/antonyurchenko/git-release)
[![Docker Pulls](https://img.shields.io/docker/pulls/antonyurchenko/git-release)](https://hub.docker.com/r/antonyurchenko/git-release)
[![License](https://img.shields.io/github/license/anton-yurchenko/git-release)](LICENSE.md)
Expand Down

0 comments on commit 10cebad

Please sign in to comment.