Skip to content

Commit

Permalink
Add CI Jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
spjmurray committed May 14, 2024
1 parent 75897ba commit 18e3df2
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Unikorn Push
on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
env:
GO_VERSION: 1.22.1
jobs:
Static:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: License Checker
run: make license
Runtime:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Golang CI/Helm Lint
run: make lint
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@ LINT_VERSION=v1.57.1
lint: $(GENDIR)
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(LINT_VERSION)
$(GOBIN)/golangci-lint run ./...

# Perform license checking.
# This must pass or you will be denied by CI.
.PHONY: license
license:
@go install github.com/unikorn-cloud/core/hack/check_license
$(GOBIN)/check_license

0 comments on commit 18e3df2

Please sign in to comment.