Skip to content

Commit

Permalink
Merge pull request #2 from keptn-sandbox/github_actions
Browse files Browse the repository at this point in the history
Added a github action for unit tests
  • Loading branch information
christian-kreuzberger-dtx authored Mar 31, 2020
2 parents e140864 + 1c47041 commit 5b949e7
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 47 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: tests
on: [pull_request]
jobs:
test:
strategy:
matrix:
go-version: [1.12.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
env:
GO111MODULE: "on"
GOPROXY: "https://proxy.golang.org"
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test -race -v ./...
46 changes: 0 additions & 46 deletions .travis.yml

This file was deleted.

13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Quick start:

# keptn-service-template-go
![GitHub release (latest by date)](https://img.shields.io/github/v/release/your-username/keptn-service-template-go)
[![Build Status](https://travis-ci.org/your-username/keptn-service-template-go.svg?branch=master)](https://travis-ci.org/your-username/keptn-service-template-go)
[![Go Report Card](https://goreportcard.com/badge/github.com/your-username/keptn-service-template-go)](https://goreportcard.com/report/github.com/your-username/keptn-service-template-go)

This implements a keptn-service-template-go for Keptn.
Expand Down Expand Up @@ -97,6 +96,18 @@ If you want to get more insights, please look into [main.go](main.go), [deploy/s

We have dummy cloud-events in the form of PostMan Requests in the [test-events/](test-events/) directory.

### GitHub Actions: Automated Pull Request Review

This repo uses [reviewdog](https://github.com/reviewdog/reviewdog) for automated reviews of Pull Requests.

You can find the details in [.github/workflows/reviewdog.yml](.github/workflows/reviewdog.yml).

### GitHub Actions: Unit Tests

This repo has automated unit tests for pull requests.

You can find the details in [.github/workflows/tests.yml](.github/workflows/tests.yml).

## License

Please find more information in the [LICENSE](LICENSE) file.

0 comments on commit 5b949e7

Please sign in to comment.