Skip to content

Support Helm Release in ServiceDeployment crd #264

Support Helm Release in ServiceDeployment crd

Support Helm Release in ServiceDeployment crd #264

Workflow file for this run

name: CI / Controller
on:
push:
branches:
- "master"
paths:
- ".github/workflows/controller.yaml"
- "controller/**"
pull_request:
branches:
- "**"
paths:
- ".github/workflows/controller.yaml"
- "controller/**"
permissions:
contents: read
env:
GOPATH: /home/runner/go/
GOPROXY: "https://proxy.golang.org"
jobs:
build:
name: Build
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: controller
timeout-minutes: 5
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: controller/go.mod
cache: true
- run: go mod download
- run: PATH=$PATH:$GOPATH/bin make build
unit-test:
name: Unit tests
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
working-directory: controller
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Set up Go
uses: actions/setup-go@v4.1.0
with:
go-version-file: controller/go.mod
cache: true
- name: Download dependencies
run: go mod download
- name: Download tools
run: PATH=$PATH:$GOPATH/bin make tools
- name: Test
run: PATH=$PATH:$GOPATH/bin make test
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: controller/go.mod
check-latest: true
- uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
with:
version: v1.55.1
working-directory: controller