Update workflows

This commit is contained in:
Waleed Malik
2021-01-26 11:30:38 +05:00
parent dcae4c98ac
commit e74dcc3cbd
3 changed files with 14 additions and 29 deletions

View File

@@ -1,12 +1,12 @@
name: Pull Request
on:
pull_request:
pull_request_target:
branches:
- master
env:
DOCKER_FILE_PATH: build/Dockerfile
DOCKER_FILE_PATH: Dockerfile
GOLANG_VERSION: 1.15.2
KUBERNETES_VERSION: "1.18.0"
KIND_VERSION: "0.7.0"
@@ -30,6 +30,10 @@ jobs:
with:
go-version: ${{ env.GOLANG_VERSION }}
- name: Install Dependencies
run: |
make install
- name: Lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.26.0
@@ -52,16 +56,7 @@ jobs:
- name: Create Kind Cluster
run: |
kind create cluster
- name: Set up Cluster
run: |
kubectl cluster-info
mkdir -p .local
echo "${{ secrets.SECRET_KUBERNETES_RESOURCES }}" | base64 --decode > .local/test-config.yaml
- name: Make Install & Verify
run: |
make install
- name: Test
run: make test