Skip to content

Commit

Permalink
Merge pull request #32 from benmatselby/switch-build
Browse files Browse the repository at this point in the history
Move builds and coverage to GitHub actions and Sonar
  • Loading branch information
benmatselby authored Aug 28, 2019
2 parents dc67e9b + 2b225c3 commit 75b2635
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 21 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Go
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.12
uses: actions/setup-go@v1
with:
go-version: 1.12
id: go

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

- name: Get dependencies
run: |
make install
- name: Vet
run: |
make vet
- name: Build
run: |
make build
- name: Test
run: |
make test
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
coverage.out
debug.test
vendor/

# Sonar
.scannerwork/
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# go-azuredevops

[![GoDoc](https://godoc.org/github.com/benmatselby/go-azuredevops/azuredevops?status.svg)](https://godoc.org/github.com/benmatselby/go-azuredevops/azuredevops)
[![Build Status](https://travis-ci.org/benmatselby/go-azuredevops.png?branch=master)](https://travis-ci.org/benmatselby/go-azuredevops)
[![codecov](https://codecov.io/gh/benmatselby/go-azuredevops/branch/master/graph/badge.svg)](https://codecov.io/gh/benmatselby/go-azuredevops)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=go-azuredevops&metric=alert_status)](https://sonarcloud.io/dashboard?id=go-azuredevops)
[![Go Report Card](https://goreportcard.com/badge/github.com/benmatselby/go-azuredevops?style=flat-square)](https://goreportcard.com/report/github.com/benmatselby/go-azuredevops)

`go-azuredevops` is a Go client library for accessing the [Azure DevOps API](https://docs.microsoft.com/en-gb/rest/api/vsts/). This is very much work in progress, so at the moment supports a small subset of the API.
Expand All @@ -11,12 +10,12 @@

There is partial implementation for the following services

* Boards
* Builds
* Favourites
* Iterations
* Pull Requests
* Work Items
- Boards
- Builds
- Favourites
- Iterations
- Pull Requests
- Work Items

## Usage

Expand Down
13 changes: 13 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
sonar.host.url=https://sonarcloud.io
sonar.organization=benmatselby
sonar.projectKey=go-azuredevops
sonar.projectName=go-azuredevops

sonar.sources=.
sonar.exclusions=**/*_test.go

sonar.tests=.
sonar.test.inclusions=**/*_test.go

sonar.go.tests.reportPaths=coverage.out
sonar.go.coverage.reportPaths=coverage.out

0 comments on commit 75b2635

Please sign in to comment.