Add a separate lint and unit test flow (#2089)

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
Sanket Sudake
2021-06-22 15:00:58 +05:30
committed by GitHub
parent dc57f83d19
commit 8b57a035ee
4 changed files with 77 additions and 6 deletions
+5 -6
View File
@@ -8,6 +8,8 @@ on:
- '**.go'
- 'charts/**'
- 'test/**'
- go.mod
- go.sum
pull_request:
branches:
- master
@@ -16,6 +18,8 @@ on:
- '**.go'
- 'charts/**'
- 'test/**'
- go.mod
- go.sum
workflow_dispatch:
jobs:
@@ -59,15 +63,10 @@ jobs:
kubectl get nodes
sudo apt-get install -y apache2-utils
- name: Static code analysis
- name: Helm chart lint
run: |
./hack/verify-gofmt.sh
./hack/verify-govet.sh
helm lint charts/fission-all/ charts/fission-core/
- name: Run unit tests
run: ./hack/runtests.sh
- name: Helm update
run: helm repo add prometheus-community https://prometheus-community.github.io/helm-charts