Skip to content

feat: add Helm ci (#278) #752

feat: add Helm ci (#278)

feat: add Helm ci (#278) #752

Workflow file for this run

name: Operator CI
on: [push, pull_request]
jobs:
go-lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v4
with:
go-version: "1.20"
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: "latest"
skip-pkg-cache: true
skip-build-cache: true
args: "-c ./.golangci.yml --timeout=10m --issues-exit-code=1 --max-issues-per-linter=0 --sort-results ./..."
go-unit-tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v4
with:
go-version: "1.20"
- name: make test
run: make test
- name: Go Test Coverage
uses: codecov/codecov-action@v3
with:
files: ./operator.out # optional
go-integration-tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v4
with:
go-version: "1.20"
- name: make test-integration
run: make test-integration