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 c22da8b commit d8ec5f8
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 19 deletions.
18 changes: 0 additions & 18 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-storage-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-storage-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/storage

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

Expand Down

0 comments on commit d8ec5f8

Please sign in to comment.