Skip to content

Commit

Permalink
switch to GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
satta committed Mar 15, 2021
1 parent 890d0dd commit 1f7b8a8
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 13 deletions.
12 changes: 0 additions & 12 deletions .circleci/config.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Go

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

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.13
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get 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
go get golang.org/x/tools/cmd/cover
go get github.com/mattn/goveralls
- name: Test
run: go test -v -covermode=count -coverprofile=coverage.out ./...

- name: Coveralls
run: goveralls -coverprofile=coverage.out -service=circle-ci -repotoken $COVERALLS_TOKEN
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# gommunityid

[![CircleCI](https://circleci.com/gh/satta/gommunityid.svg?style=svg)](https://circleci.com/gh/satta/gommunityid)
[![Status](https://github.com/satta/gommunityid/actions/workflows/go.yml/badge.svg)](https://github.com/satta/gommunityid/actions)
[![Coverage Status](https://coveralls.io/repos/github/satta/gommunityid/badge.svg?branch=master)](https://coveralls.io/github/satta/gommunityid?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/satta/gommunityid)](https://goreportcard.com/report/github.com/satta/gommunityid)
[![Documentation](https://godoc.org/github.com/satta/gommunityid?status.svg)](http://godoc.org/github.com/satta/gommunityid)
Expand Down

0 comments on commit 1f7b8a8

Please sign in to comment.