Skip to content

Commit

Permalink
Merge pull request #8 from RainbowMango/pr_enable_ci
Browse files Browse the repository at this point in the history
Enable Continuous integration
  • Loading branch information
k8s-ci-robot authored Jul 19, 2021
2 parents 0f3c910 + a12a407 commit 3494eb2
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 40 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI Workflow
on:
# Run this workflow every time a new commit pushed to upstream/fork repository.
# Run workflow on fork repository will help contributors find and resolve issues before sending a PR.
push:
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
# the version of golangci-lint.
version: v1.32.2

# show only new issues if it's a pull request.
only-new-issues: false
verify:
name: verify
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
- name: install Go
uses: actions/setup-go@v2
with:
go-version: 1.14.x
- name: verify
run: hack/verify-all.sh -v
test:
name: unit test
needs: verify
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
- name: install Go
uses: actions/setup-go@v2
with:
go-version: 1.14.x
- name: make test
run: make test
40 changes: 0 additions & 40 deletions hack/verify-golint.sh

This file was deleted.

0 comments on commit 3494eb2

Please sign in to comment.