Skip to content

Commit

Permalink
using github action actions-goveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Landgraf committed Aug 30, 2021
1 parent a530a9b commit 6c67858
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/golang-ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
name: Golang CI
on: [push]
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: [ '1.17', '1.16' ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.node }}
go-version: ${{ matrix.go }}
- name: Login to DockerHub
uses: docker/login-action@v1
with:
Expand All @@ -20,9 +21,17 @@ jobs:
run: make test
- name: Integration tests
run: docker-compose run testserver make ci
# publish:
# runs-on: ubuntu-latest
# if: ${{ github.ref == 'refs/heads/master' }}
# steps:
# - name: Publish coverage
# run: go run ./vendor/github.com/mattn/goveralls -coverprofile=coverage.out -service=travis-ci
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverage.out
flag-name: Go-${{ matrix.go }}
parallel: true

finish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# PACE Bricks [![Build Status](https://travis-ci.org/pace/bricks.svg?branch=master)](https://travis-ci.org/pace/bricks) [![Coverage Status](https://coveralls.io/repos/github/pace/bricks/badge.svg?branch=master)](https://coveralls.io/github/pace/bricks?branch=master)
# PACE Bricks [![Golang CI](https://github.com/pace/bricks/actions/workflows/golang-ci.yml/badge.svg)](https://github.com/pace/bricks/actions/workflows/golang-ci.yml) [![Coverage Status](https://coveralls.io/repos/github/pace/bricks/badge.svg?branch=master)](https://coveralls.io/github/pace/bricks?branch=master)

![](artwork/PACE-Bricks_Header_LightBackground.png)

Expand Down

0 comments on commit 6c67858

Please sign in to comment.