Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
Signed-off-by: jdolitsky <393494+jdolitsky@users.noreply.github.com>
  • Loading branch information
jdolitsky committed Jul 13, 2020
1 parent 4233ee7 commit 08e6450
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 9 deletions.
8 changes: 0 additions & 8 deletions .codefresh/master.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: build-pr

on:
pull_request:
branches:
- master

jobs:
run:
runs-on: ubuntu-latest
steps:
- name: checkout source code
uses: actions/checkout@master
- name: setup go environment
uses: actions/setup-go@v1
with:
go-version: '1.14.4'
- name: run tests
run: make test
- name: upload coverage report
uses: actions/upload-artifact@master
with:
name: chartmuseum-auth-coverage-report-${{ github.sha }}
path: coverage.html
if: always()
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: build

on:
push:
branches:
- master

jobs:
run:
runs-on: ubuntu-latest
steps:
- name: checkout source code
uses: actions/checkout@master
- name: setup go environment
uses: actions/setup-go@v1
with:
go-version: '1.14.4'
- name: run tests
run: make test
- name: upload coverage report
uses: actions/upload-artifact@master
with:
name: chartmuseum-auth-coverage-report-${{ github.sha }}
path: coverage.html
if: always()
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# chartmuseum/auth

[![Codefresh build status]( https://g.codefresh.io/api/badges/pipeline/chartmuseum/chartmuseum%2Fauth%2Fmaster?type=cf-1)]( https://g.codefresh.io/public/accounts/chartmuseum/pipelines/chartmuseum/auth/master)
[![GitHub Actions status](https://github.com/chartmuseum/auth/workflows/build/badge.svg)](https://github.com/chartmuseum/auth/actions?query=workflow%3Abuild)
[![Go Report Card](https://goreportcard.com/badge/github.com/chartmuseum/auth)](https://goreportcard.com/report/github.com/chartmuseum/auth)
[![GoDoc](https://godoc.org/github.com/chartmuseum/auth?status.svg)](https://godoc.org/github.com/chartmuseum/auth)

Expand Down

0 comments on commit 08e6450

Please sign in to comment.