Skip to content

Commit

Permalink
Add GitHub Actions CI (#183)
Browse files Browse the repository at this point in the history
Signed-off-by: jdolitsky <[email protected]>
  • Loading branch information
jdolitsky authored Oct 1, 2020
1 parent 73b72c5 commit ad8a2d6
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 76 deletions.
30 changes: 0 additions & 30 deletions .codefresh/master.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .codefresh/pr.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .codefresh/release.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:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: setup go environment
uses: actions/setup-go@v1
with:
go-version: '1.15.2'
- name: run unit tests
run: make test
- name: upload coverage report
uses: actions/upload-artifact@master
with:
name: oras-coverage-report-${{ github.sha }}
path: .cover/
if: always()
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: build

on:
push:
branches: master

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: setup go environment
uses: actions/setup-go@v1
with:
go-version: '1.15.2'
- name: run unit tests
run: make test
- name: upload coverage report
uses: actions/upload-artifact@master
with:
name: oras-coverage-report-${{ github.sha }}
path: .cover/
if: always()
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OCI Registry As Storage

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

Expand Down

0 comments on commit ad8a2d6

Please sign in to comment.