Skip to content

Commit

Permalink
added CI workflow
Browse files Browse the repository at this point in the history
Signed-off-by: ortuman <ortuman@gmail.com>
  • Loading branch information
ortuman committed Oct 13, 2021
1 parent ea4dae7 commit 4e43ba4
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 56 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/check.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI

on:
push:
pull_request:

jobs:
check:
name: check
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v1

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '^1.17.1'

- name: Setup Go linter
run: go get -u -v golang.org/x/tools/cmd/goimports golang.org/x/lint/golint

- name: Setup moq
run: go get github.com/matryer/moq

- name: Run checks
run: make check

test:
name: test
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v1

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '^1.17.1'

- name: Setup moq
run: go get github.com/matryer/moq

- name: Run tests
run: make test

- name: Upload coverage report
uses: codecov/codecov-action@v1.2.1
with:
file: coverage.txt
29 changes: 0 additions & 29 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 4e43ba4

Please sign in to comment.