Skip to content

Commit 92b65a5

Browse files
authored
Integrate with github actions (operator-framework#14)
* Integrate with github actions * Rename job to lint * Use go test instead of ginkgo to run the tests
1 parent 223c365 commit 92b65a5

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

Diff for: .github/workflows/lint.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: lint
2+
on:
3+
pull_request: {}
4+
5+
jobs:
6+
lint:
7+
name: lint
8+
runs-on: ubuntu-18.04
9+
steps:
10+
- uses: actions/setup-go@v2
11+
with:
12+
go-version: 1.16
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- run: make lint

Diff for: .github/workflows/test-unit.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: test-unit
2+
on:
3+
pull_request: {}
4+
5+
jobs:
6+
unit:
7+
name: unit
8+
runs-on: ubuntu-18.04
9+
steps:
10+
- uses: actions/setup-go@v2
11+
with:
12+
go-version: 1.16
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- run: make test
17+
- uses: shogo82148/actions-goveralls@v1
18+
with:
19+
path-to-profile: coverage.out

Diff for: Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ lint:
33
@go fmt ./...
44

55
test:
6-
@ginkgo ./...
6+
@go test -coverprofile=coverage.out -covermode=count -short ./...
77

88
.PHONY: test lint

0 commit comments

Comments
 (0)