Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github actions #8

Merged
merged 1 commit into from
Jul 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 0 additions & 97 deletions .circleci/config.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build

on:
push:
pull_request:

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
-
name: Check out code
uses: actions/checkout@v1
-
name: Reviewdog Lint
uses: reviewdog/action-golangci-lint@v1
with:
reporter: github-check

test:
name: Test and Cover
runs-on: ubuntu-latest
steps:
-
name: Check out code
uses: actions/checkout@v1
-
name: Run Unit tests
run: go test -coverprofile=coverage.txt ./...
-
name: Upload Coverage report to CodeCov
uses: codecov/codecov-action@v1
with:
file: ./coverage.txt
29 changes: 29 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*' # semver v1.0.0-beta.2

jobs:
release:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![<CirclCI>](https://circleci.com/gh/apigee/apigee-remote-service-cli.svg?style=svg)](https://circleci.com/gh/apigee/apigee-remote-service-cli)
[![Build](https://github.com/apigee/apigee-remote-service-cli/workflows/Build/badge.svg)](https://github.com/apigee/apigee-remote-service-cli/workflows/Build/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/apigee/apigee-remote-service-cli)](https://goreportcard.com/report/github.com/apigee/apigee-remote-service-cli)
[![codecov.io](https://codecov.io/github/apigee/apigee-remote-service-cli/coverage.svg?branch=master)](https://codecov.io/github/apigee/apigee-remote-service-cli?branch=master)

Expand Down